FreeBSD also needs libgen.h
authorJoshua Colp <jcolp@digium.com>
Wed, 10 Dec 2008 16:11:06 +0000 (16:11 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 10 Dec 2008 16:11:06 +0000 (16:11 +0000)
(closes issue #14051)
Reported by: ys
Patches:
      res_http_post.c.diff uploaded by ys (license 281)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162660 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_http_post.c

index 0d9ca57..4a31567 100644 (file)
@@ -37,7 +37,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision: 111213 $")
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <gmime/gmime.h>
-#if defined (__OpenBSD__)
+#if defined (__OpenBSD__) || defined(__FreeBSD__)
 #include <libgen.h>
 #endif