Fixes for gcc 4.9.1 toolchain.
Change-Id: I2b9ad54f5de47d0acfcfde407a3315133ade76b3
diff --git a/Makefile b/Makefile
index ec2989e..44e1556 100755
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
OBJFILES=jtux_clock.o jtux_file.o jtux_sysvipc.o jtux_dir.o jtux_network.o jtux_process.o jtux_util.o
libjtux.so: $(OBJFILES)
- $(CC) -shared -W1 -lnsl -o libjtux.so $(OBJFILES)
+ $(CC) -shared -lnsl -o libjtux.so $(OBJFILES)
clean:
rm -f *.o libjtux.so *.c~ *.h~ *.class
diff --git a/jtux_util.c b/jtux_util.c
index 646e73f..ac9a780 100755
--- a/jtux_util.c
+++ b/jtux_util.c
@@ -27,6 +27,8 @@
#include <sys/un.h>
#include <sys/poll.h>
#include <netinet/in.h>
+#include <sys/time.h>
+#include <sys/resource.h>
#include "jtux_util.h"
#include "JNI_macros.h"