Permalink
Browse files

Add support for FreeBSD

  • Loading branch information...
1 parent aea3247 commit ea31a381ca1059dbb1c5578ed6a5cd3f676b9773 @skreuzer committed Dec 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 stderred.c
View
4 stderred.c
@@ -1,7 +1,11 @@
#define write ye_olde_write
#include <unistd.h>
#include <string.h>
+#ifndef __FreeBSD__
#include <alloca.h>
+#else
+extern char *alloca(size_t);
+#endif
#include <dlfcn.h>

0 comments on commit ea31a38

Please sign in to comment.