fix implicit decl warnings
authorMike Frysinger <vapier@gentoo.org>
Tue, 4 Dec 2012 03:30:04 +0000 (22:30 -0500)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 11 Aug 2014 13:08:05 +0000 (06:08 -0700)
commit10a1a78115069098419d32a042d99a56f62fb642
tree64aa294d2fd640bc9e2b5368f77ea5b72ee3c32a
parent408cd870b8612dba174aab849239016f66c2d2cd
fix implicit decl warnings

Include the proper headers to fix warnings like:
libnfs-sync.c:1529:3: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
libnfs-zdr.c:506:2: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sys/time.h needs to be protected with an ifdef

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
lib/libnfs-sync.c
lib/libnfs-zdr.c
lib/libnfs.c
lib/socket.c