[PATCH] Fix up <sys/socket.h> include dependency
authorAndreas Gal <gal@uci.edu>
Wed, 27 Apr 2005 20:46:36 +0000 (13:46 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 27 Apr 2005 20:46:36 +0000 (13:46 -0700)
This makes rsh.c compile on Darwin/MacOSX (and might possibly help on
some Linux distributions too).

sys/socket.h needs sys/types.h

Signed-off-by: Andreas Gal <gal@uci.edu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
rsh.c

diff --git a/rsh.c b/rsh.c
index 4d6a90b..af2f47b 100644 (file)
--- a/rsh.c
+++ b/rsh.c
@@ -1,6 +1,7 @@
 #include "rsh.h"
 
 #include <string.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 
 #include "cache.h"