Fix compilation issues on OS X - mainly #include file changes (Lars Immisch)
This commit is contained in:
parent
ef061951e6
commit
12247c6713
|
@ -19,9 +19,15 @@
|
||||||
#define mISDNIF_H
|
#define mISDNIF_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#ifdef linux
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/socket.h>
|
#include <linux/socket.h>
|
||||||
|
#else
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/errno.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ABI Version 32 bit
|
* ABI Version 32 bit
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#ifndef PAGING_H
|
#ifndef PAGING_H
|
||||||
#define PAGING_H
|
#define PAGING_H
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "linuxlist.h"
|
#include "linuxlist.h"
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#ifndef _ZEBRA_BUFFER_H
|
#ifndef _ZEBRA_BUFFER_H
|
||||||
#define _ZEBRA_BUFFER_H
|
#define _ZEBRA_BUFFER_H
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* Create a new buffer. Memory will be allocated in chunks of the given
|
/* 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
|
size. If the argument is 0, the library will supply a reasonable
|
||||||
default size suitable for buffering socket I/O. */
|
default size suitable for buffering socket I/O. */
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#define _ZEBRA_COMMAND_H
|
#define _ZEBRA_COMMAND_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
#include "vty.h"
|
#include "vty.h"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <openbsc/gsm_utils.h>
|
#include <openbsc/gsm_utils.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* GSM 03.38 6.2.1 Charachter packing */
|
/* GSM 03.38 6.2.1 Charachter packing */
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <openbsc/signal.h>
|
#include <openbsc/signal.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define COMPARE(original, copy) \
|
#define COMPARE(original, copy) \
|
||||||
if (original->id != copy->id) \
|
if (original->id != copy->id) \
|
||||||
|
|
Loading…
Reference in New Issue