s4:smbd: Add missing unistd.h include to fix build of process_prefork
authorAndreas Schneider <asn@samba.org>
Thu, 19 Oct 2017 15:27:23 +0000 (17:27 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 19 Oct 2017 21:41:11 +0000 (23:41 +0200)
error: implicit declaration of function ‘getpgrp’; did you mean ‘getpt’?
[-Werror=implicit-function-declaration]

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/smbd/process_prefork.c

index f2033e96146e4e4072a9e4ebaeefec91c906f2ea..8e4d62470a7fcc148cf4a44fe201d6d237892b1c 100644 (file)
@@ -24,6 +24,8 @@
 */
 
 #include "includes.h"
+#include <unistd.h>
+
 #include "lib/events/events.h"
 #include "lib/messaging/messaging.h"
 #include "lib/socket/socket.h"