Index: peep-0.5.7.c
--- peep-0.5.7.c.orig	2002-06-26 21:30:17 +0200
+++ peep-0.5.7.c	2006-12-29 16:34:27 +0100
@@ -478,9 +478,11 @@
 		setsockopt (con[cons]->lsock, SOL_SOCKET, SO_BROADCAST,
 			    (const void *) &k, sizeof(k));
 
+#if defined(SOL_TCP)
 		k=1024;
 		setsockopt (con[cons]->lsock, SOL_TCP, TCP_MAXSEG,
 			    (const void *) &k, sizeof(k));
+#endif
 	    }
 	    udp_flag=0;
 	    con[cons]->listen_flag = 1;
@@ -1527,7 +1529,7 @@
      unsigned long bw;
 
      bw = (bytes-oldbytes)/interval;
-     fprintf(stderr, "%d: %lu = (%lu - %lu)/%d\n", getpid(), bw, bytes, oldbytes, interval);
+     fprintf(stderr, "%d: %lu = (%lu - %lu)/%d\n", (int)getpid(), bw, bytes, oldbytes, interval);
      oldbytes = bytes;
 
      alarm(interval);
@@ -1536,7 +1538,7 @@
 }
 
 void peep_exit(int ret) {
-     if (report_flag) fprintf(stderr, "%d: bytes written: %lu\n", getpid(), bytes);
+     if (report_flag) fprintf(stderr, "%d: bytes written: %lu\n", (int)getpid(), bytes);
      exit(ret);
 }
 
