Merged revisions 326830 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Jul 2011 19:20:38 +0000 (19:20 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Jul 2011 19:20:38 +0000 (19:20 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r326830 | tilghman | 2011-07-07 14:17:19 -0500 (Thu, 07 Jul 2011) | 1 line

  libgen.h is also needed on Darwin for basename(3)
........

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

res/res_http_post.c

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