summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-07 20:59:52 +0000
committerRoy Marples <roy@marples.name>2007-11-07 20:59:52 +0000
commit348016d0ac49d1252d523c362940a2aa1e7e4e2f (patch)
treec6ca82df95d3741138340b804a4c20e18d54abf5 /common.h
parent6557f5cc3ec255bc213a2bd65dca9577ffa8454a (diff)
downloaddhcpcd-348016d0ac49d1252d523c362940a2aa1e7e4e2f.tar.xz
timeval defines seconds as long, so we should use long over time_t
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/common.h b/common.h
index 7f77e6db..c622b5d6 100644
--- a/common.h
+++ b/common.h
@@ -9,7 +9,6 @@
#define COMMON_H
/* string.h pulls in features.h so the below define checks work */
-#include <sys/time.h>
#include <string.h>
/* Only GLIBC doesn't support strlcpy */
@@ -25,7 +24,7 @@ void srandomdev (void);
void close_fds (void);
int get_time (struct timeval *tp);
-time_t uptime (void);
+long uptime (void);
void writepid (int fd, pid_t pid);
void *xmalloc (size_t size);
char *xstrdup (const char *str);