change BSD ifndefs to __OpenBSD__ and remove unnecessary ifdefs
I'm not sure if any operating system other than OpenBSD has strlcpy/strlcat. May need to use a configure script for this later on.
This commit is contained in:
parent
03b3631fa9
commit
cae9985747
5 changed files with 8 additions and 10 deletions
4
util.h
4
util.h
|
@ -2,13 +2,13 @@
|
|||
|
||||
#define _UTIL_H_
|
||||
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include <lua.h>
|
||||
|
||||
int lfail(lua_State *);
|
||||
int lfailm(lua_State *, const char *);
|
||||
|
||||
#ifndef BSD
|
||||
#ifndef __OpenBSD__
|
||||
size_t strlcat(char *, const char *, size_t);
|
||||
size_t strlcpy(char *, const char *, size_t);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue