srlog2-0.85 build fix

Thilo Bangert <[email protected]> Mon, 7 Dec 2009 12:38:43 +0100
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
Hi,

the following patch may be necessary on recent toolchains.

thanks.
kind regards
Thilo

-- 
it fixes the following error
./compile connections.c                                                                                                                                                              
./compile senders.c                                                                                                                                                                  
./compile services.c                                                                                                                                                                 
./compile srlog2d-ini.c                                                                                                                                                              
srlog2d-ini.c: In function ‘handle_ini’:                                                                                                                                             
srlog2d-ini.c:48: error: ‘MSG_PEEK’ undeclared (first use in this function)                                                                                                          
srlog2d-ini.c:48: error: (Each undeclared identifier is reported only once                                                                                                           
srlog2d-ini.c:48: error: for each function it appears in.)                                                                                                                           
srlog2d-ini.c:48: error: ‘MSG_DONTWAIT’ undeclared (first use in this 
function)                                                                                                      
./compile srlog2d-msg.c                                                                                                                                                              
make: *** [srlog2d-ini.o] Error 1                                                                                                                                                    
make: *** Waiting for unfinished jobs....
srlog2-0.85-fix-incude.patch (text/x-patch, 339 B)
diff -Naur srlog2-0.85.orig/srlog2d-ini.c srlog2-0.85/srlog2d-ini.c
--- srlog2-0.85.orig/srlog2d-ini.c	2009-12-07 12:29:58.000000000 +0100
+++ srlog2-0.85/srlog2d-ini.c	2009-12-07 12:30:20.000000000 +0100
@@ -1,5 +1,6 @@
 #include <sys/types.h>
 #include <string.h>
+#include <sys/socket.h>
 
 #include <systime.h>
 #include <adt/ghash.h>
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEABECAAYFAksc6UYACgkQxRElEoA5AnekSwCgyNUq8Gr72nuDam+tUc77rLvU
ZEUAoM5VzhgJOBfyv/WBMfWAs80DCSkp
=V/od
-----END PGP SIGNATURE-----