lua(4): cleaned stubs

This commit is contained in:
lneto 2014-07-19 17:10:02 +00:00
parent 0a3068e150
commit f3c23d8032
5 changed files with 3 additions and 34 deletions

View File

@ -1,8 +0,0 @@
/* $NetBSD */
/*
* This file is a placeholder only, to allow Lua to be compiled from
* unchanged sources.
*/
#include <sys/errno.h>

View File

@ -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.
*/

View File

@ -1,8 +0,0 @@
/* $NetBSD */
/*
* This file is a placeholder only, to allow Lua to be compiled from
* unchanged sources.
*/
#include <sys/stdarg.h>

View File

@ -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>

View File

@ -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