]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Correct includes for unlockiter.c 182/head
authorTom Yu <tlyu@mit.edu>
Mon, 4 Aug 2014 16:34:24 +0000 (12:34 -0400)
committerTom Yu <tlyu@mit.edu>
Mon, 4 Aug 2014 16:34:24 +0000 (12:34 -0400)
Some platforms (e.g., Solaris) need a declaration of memset() for the
FD_ZERO() macro to work, contrary to POSIX standards.  Add an
inclusion of <string.h> to accommodate them.  Also add <sys/time.h>,
possibly needed by some older platforms, and remove a spurious
inclusion of <sys/socket.h>.

ticket: 7977

src/tests/unlockiter.c

index e2f2eb5edaf9a81f99a39ecbb8b018201949f7c4..b0c48f9595921c9941970930d912fb613aef09a2 100644 (file)
@@ -35,7 +35,8 @@
  */
 
 #include <sys/types.h>
-#include <sys/socket.h>
+#include <sys/select.h>
+#include <sys/time.h>
 #include <sys/wait.h>
 
 #include <errno.h>
@@ -43,6 +44,7 @@
 #include <kadm5/admin.h>
 #include <signal.h>
 #include <stdlib.h>
+#include <string.h>             /* Some platforms need memset() for FD_ZERO */
 #include <unistd.h>
 
 struct cb_arg {