Fix compilation issues on OS X - mainly #include file changes (Lars Immisch)
diff --git a/include/mISDNif.h b/include/mISDNif.h
index a4ef7f6..8e065d2 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 fd9dc02..de512d1 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 87cb3fd..3151940 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 f72ea6c..26022cb 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"