aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-21 07:23:02 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-21 07:23:02 +0000
commit12247c671371cd7f5466beb96db8ade8b12406d9 (patch)
tree5b130fe5011a22a4113ad140bbadf9266eb03fbe /include
parentef061951e6e9c8bb9eda16f396ad245037156868 (diff)
Fix compilation issues on OS X - mainly #include file changes (Lars Immisch)
Diffstat (limited to 'include')
-rw-r--r--include/mISDNif.h6
-rw-r--r--include/openbsc/paging.h2
-rw-r--r--include/vty/buffer.h2
-rw-r--r--include/vty/command.h1
4 files changed, 10 insertions, 1 deletions
diff --git a/include/mISDNif.h b/include/mISDNif.h
index a4ef7f691..8e065d24b 100644
--- a/include/mISDNif.h
+++ b/include/mISDNif.h
@@ -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
diff --git a/include/openbsc/paging.h b/include/openbsc/paging.h
index fd9dc02e8..de512d1ae 100644
--- a/include/openbsc/paging.h
+++ b/include/openbsc/paging.h
@@ -21,7 +21,7 @@
#ifndef PAGING_H
#define PAGING_H
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include "linuxlist.h"
diff --git a/include/vty/buffer.h b/include/vty/buffer.h
index 87cb3fde4..31519400f 100644
--- a/include/vty/buffer.h
+++ b/include/vty/buffer.h
@@ -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. */
diff --git a/include/vty/command.h b/include/vty/command.h
index f72ea6c04..26022cb02 100644
--- a/include/vty/command.h
+++ b/include/vty/command.h
@@ -24,6 +24,7 @@
#define _ZEBRA_COMMAND_H
#include <stdio.h>
+#include <sys/types.h>
#include "vector.h"
#include "vty.h"