[Fakeroot-commits] fakeroot faked.c,1.4,1.5

schizo@haydn.debian.org schizo@haydn.debian.org


Update of /cvsroot/fakeroot/fakeroot
In directory haydn:/tmp/cvs-serv27376

Modified Files:
	faked.c 
Log Message:
 * Handle platforms where SOL_TCP is undefined.


Index: faked.c
===================================================================
RCS file: /cvsroot/fakeroot/fakeroot/faked.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- faked.c	17 Jun 2004 18:37:17 -0000	1.4
+++ faked.c	18 Jun 2004 17:16:50 -0000	1.5
@@ -108,6 +108,10 @@
 # define FAKE_KEY port
 #endif /* FAKEROOT_FAKENET */
 
+#ifndef SOL_TCP
+# define SOL_TCP 6 /* this should probably be done with getprotoent */
+#endif
+
 #define fakestat_equal(a, b)  ((a)->dev == (b)->dev && (a)->ino == (b)->ino)
 
 #ifndef FAKEROOT_FAKENET