Alcune correzioni.
authorSimone Piccardi <piccardi@gnulinux.it>
Wed, 20 Aug 2008 23:13:37 +0000 (23:13 +0000)
committerSimone Piccardi <piccardi@gnulinux.it>
Wed, 20 Aug 2008 23:13:37 +0000 (23:13 +0000)
sources/Makefile
sources/TCP_daytime.c
sources/UDP_daytime.c
sources/getcap.c

index 38b67a41ee6261ea3f8eb652fd3ff7834777b039..2d3a1dc89dfcf96cf8d200ba6c87302e96bdedc6 100644 (file)
@@ -11,9 +11,9 @@ LIB = libgapil.so
 OBJ = FullRead.o FullWrite.o SigHand.o Mutex.o SharedMem.o LockFile.o \
       DirScan.o endian.o SockUtil.o full_fread.o full_fwrite.o is_closing.o
 
-FINAL = forktest errcode echo echod daytimed iterdaytimed daytime testfopen \
+FINAL = forktest errcode techo uecho echod daytimed iterdaytimed daytime  \
        testren fortune fortuned mqfortune mqfortuned flock myls dirmonitor \
-       readmon ipctestid writeshm getcap #readshm
+       readmon ipctestid writeshm getcap testfopen #readshm
 
 $(LIB): $(OBJ)
        gcc -shared -lrt $^ -o $@
index ba6874f6afd7541e3896fe7a7f903252ff17db54..0c5857e7b8ac0f84be166d935eefb48309e932aa 100644 (file)
@@ -30,6 +30,7 @@
 /* 
  * Include needed headers
  */
+#include <stdlib.h>     /* standard library */
 #include <sys/types.h>   /* primitive system data types */
 #include <unistd.h>      /* unix standard library */
 #include <arpa/inet.h>   /* IP addresses conversion utilities */
index 4298f9f56d749c2446919d35ff3dc2c67d849d5c..889e61d3e33c7a8806bbaa50dbfd6dd6d25aebd3 100644 (file)
@@ -35,6 +35,7 @@
 #include <arpa/inet.h>   /* IP addresses conversion utilities */
 #include <sys/socket.h>  /* socket constants, types and functions */
 #include <stdio.h>      /* standard I/O library */
+#include <stdlib.h>     /* standard library */
 
 #define MAXLINE 80
 /* Program begin */
index 349381279bae83cf67072bb52a57e9e628239937..ef26ace9364b02f0d2a4cdd46561d11437acfd06 100644 (file)
@@ -37,7 +37,7 @@
 #include <stdio.h>      /* standard I/O library */
 #include <string.h>      /* C strings library */
 #include <sys/types.h>   /* primitive system data types */
-#include <sys/capability.h>
+#include <sys/capability.h> /* need package libcap-dev */
 
 /* Help printing routine */
 void usage(void);