Skip to content
Browse files

Fix compilation for non-linux systems. alloca.h is not available on t…

…hese systems.
  • Loading branch information...
1 parent 3596d63 commit 59737c4b8788982e0ea6d2a12fd6d025b30f3f5d @tm512 committed Jan 26, 2012
Showing with 10 additions and 0 deletions.
  1. +2 −0 src/irc.c
  2. +4 −0 src/irchandler.c
  3. +4 −0 src/modules/core/main.c
View
2 src/irc.c
@@ -19,7 +19,9 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
+#ifdef linux
#include <alloca.h>
+#endif // linux
#include "prints.h"
#include "net.h"
View
4 src/irchandler.c
@@ -17,7 +17,11 @@
#include <stdio.h>
#include <string.h>
+#ifdef linux
#include <alloca.h>
+#else
+#include <stdlib.h>
+#endif // linux
#include "prints.h"
#include "irc.h"
View
4 src/modules/core/main.c
@@ -17,7 +17,11 @@
#include <stdio.h>
#include <string.h>
+#ifdef linux
#include <alloca.h>
+#else
+#include <stdlib.h>
+#endif
#include <sys/utsname.h>
#include "version.h"

0 comments on commit 59737c4

Please sign in to comment.
Something went wrong with that request. Please try again.