BSD uses some different includes, these are from FreeBSD ports

This commit is contained in:
Isaac Connor 2015-01-01 17:18:12 -05:00
parent d958a13114
commit e460c6f448
2 changed files with 9 additions and 0 deletions

View File

@ -25,7 +25,12 @@
#include <fcntl.h> #include <fcntl.h>
#include <stdarg.h> #include <stdarg.h>
//#include <memory.h> //#include <memory.h>
#if defined(BSD)
#include <stdlib.h>
#else
#include <alloca.h> #include <alloca.h>
#endif
#include <string.h> #include <string.h>
//#include <unistd.h> //#include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>

View File

@ -19,7 +19,11 @@
#include <getopt.h> #include <getopt.h>
#include <signal.h> #include <signal.h>
#if defined(BSD)
#include <limits.h>
#else
#include <values.h> #include <values.h>
#endif
#include "zm.h" #include "zm.h"
#include "zm_db.h" #include "zm_db.h"