Fix compilation issues on OS X - mainly #include file changes (Lars Immisch)

This commit is contained in:
Harald Welte 2009-05-21 07:23:02 +00:00
parent ef061951e6
commit 12247c6713
9 changed files with 15 additions and 6 deletions

View File

@ -19,9 +19,15 @@
#define mISDNIF_H
#include <stdarg.h>
#ifdef linux
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/socket.h>
#else
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/socket.h>
#endif
/*
* ABI Version 32 bit

View File

@ -21,7 +21,7 @@
#ifndef PAGING_H
#define PAGING_H
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include "linuxlist.h"

View File

@ -23,6 +23,8 @@
#ifndef _ZEBRA_BUFFER_H
#define _ZEBRA_BUFFER_H
#include <sys/types.h>
/* Create a new buffer. Memory will be allocated in chunks of the given
size. If the argument is 0, the library will supply a reasonable
default size suitable for buffering socket I/O. */

View File

@ -24,6 +24,7 @@
#define _ZEBRA_COMMAND_H
#include <stdio.h>
#include <sys/types.h>
#include "vector.h"
#include "vty.h"

View File

@ -26,7 +26,7 @@
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdlib.h>
#include <libgen.h>
#include <time.h>
#include <limits.h>

View File

@ -22,7 +22,7 @@
*/
#include <openbsc/gsm_utils.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
/* GSM 03.38 6.2.1 Charachter packing */

View File

@ -19,7 +19,7 @@
*/
#include <openbsc/signal.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>

View File

@ -20,7 +20,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View File

@ -22,7 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#define COMPARE(original, copy) \
if (original->id != copy->id) \