Skip to content

Commit

Permalink
Add support for __FreeBSD_kernel__
Browse files Browse the repository at this point in the history
* Add suppurt for GNU/kFreeBSD
  • Loading branch information
mattthias committed Aug 31, 2011
1 parent faef307 commit 5fca123
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions os.h
Expand Up @@ -229,6 +229,29 @@
#include <sys/sockio.h>
#include <arpa/inet.h>
#include <net/if.h>
#elif __FreeBSD_kernel__ /* G N U / k F r e e B S D */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <signal.h>
#include <curses.h>
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <net/if.h>
#include <net/if_media.h>
#include <net/if_mib.h>
#include <arpa/inet.h>
#else
#error "Your OS is not supported! Please report to hscholz@raisdorf.net"
#endif /* OS selection */
Expand Down
2 changes: 1 addition & 1 deletion slurm.c
Expand Up @@ -50,7 +50,7 @@
#ifdef __HPUX__
#include "src/hpux.h"
#include "src/hpux.c"
#elif __FreeBSD__
#elif __FreeBSD__ || __FreeBSD_kernel__
#include "src/freebsd.h"
#include "src/freebsd.c"
#elif __linux__
Expand Down

0 comments on commit 5fca123

Please sign in to comment.