lua(4): cleaned stubs
This commit is contained in:
parent
0a3068e150
commit
f3c23d8032
@ -1,8 +0,0 @@
|
||||
/* $NetBSD */
|
||||
|
||||
/*
|
||||
* This file is a placeholder only, to allow Lua to be compiled from
|
||||
* unchanged sources.
|
||||
*/
|
||||
|
||||
#include <sys/errno.h>
|
@ -1,6 +0,0 @@
|
||||
/* $NetBSD: inttypes.h,v 1.1 2013/10/16 19:44:57 mbalmer Exp $ */
|
||||
|
||||
/*
|
||||
* This file is a placeholder only, to allow Lua to be compiled from
|
||||
* unchanged sources.
|
||||
*/
|
@ -1,8 +0,0 @@
|
||||
/* $NetBSD */
|
||||
|
||||
/*
|
||||
* This file is a placeholder only, to allow Lua to be compiled from
|
||||
* unchanged sources.
|
||||
*/
|
||||
|
||||
#include <sys/stdarg.h>
|
@ -6,11 +6,5 @@
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef _BSD_PTRDIFF_T_
|
||||
typedef _BSD_PTRDIFF_T_ ptrdiff_t;
|
||||
#undef _BSD_PTRDIFF_T_
|
||||
#endif
|
||||
|
||||
#include <sys/null.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* $NetBSD */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011, Lourival Neto <lneto@NetBSD.org>.
|
||||
* Copyright (c) 2011-2014, Lourival Neto <lneto@NetBSD.org>.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -36,11 +36,8 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/kmem.h>
|
||||
|
||||
#ifndef _LUA_INCLUDE_STDLIB
|
||||
#define _LUA_INCLUDE_STDLIB
|
||||
|
||||
#define realloc(ptr, nsize) kmem_alloc(nsize, KM_SLEEP)
|
||||
#define free(ptr) kmem_free(ptr, osize)
|
||||
#ifndef _LUA_INCLUDE_STDLIB_
|
||||
#define _LUA_INCLUDE_STDLIB_
|
||||
|
||||
#define exit(EXIT_FAILURE) return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user