Skip to content
Snippets Groups Projects
Commit 8038ca83 authored by rswindell's avatar rswindell
Browse files

Deuce's mod: using __BSD macro for all BSD Unix flavors.

parent 0ebb9ec3
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@
#include <sys/stat.h> /* S_IWRITE */
#include <ctype.h> /* isdigit */
#include <stdlib.h> /* atoi */
#ifndef __FreeBSD__
#ifndef __BSD
#include <malloc.h>
#endif
#include <string.h>
......
......@@ -61,7 +61,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#ifndef __FreeBSD__ /* FreeBSD uses stdlib.h for malloc() */
#ifndef __BSD /* FreeBSD uses stdlib.h for malloc() */
#include <malloc.h>
#endif
#include <sys/stat.h>
......
......@@ -52,7 +52,7 @@
#elif defined __unix__ /* Unix-variant */
#ifdef __FreeBSD__
#ifdef __BSD
#include <sys/types.h> /* u_intXX_t */
#endif
......
......@@ -49,8 +49,10 @@
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
#ifdef __FreeBSD__
#ifdef __BSD
#ifndef __OpenBSD__
#include <sys/kbio.h>
#endif
#else
#include <sys/kd.h>
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment