Include sys/wait.h on FreeBSD to get the WEXITSTATUS() macro.
[asterisk/asterisk.git] / apps / app_voicemail.c
index c69e785..9cd2fcd 100644 (file)
@@ -94,6 +94,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <sys/mman.h>
 #include <time.h>
 #include <dirent.h>
+#if defined(__FreeBSD__)
+#include <sys/wait.h>
+#endif
 
 #include "asterisk/logger.h"
 #include "asterisk/lock.h"