summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 04:14:59 +0100
committerMichael Brown2006-12-20 04:14:59 +0100
commit637a891264f4f81533e58f1b5ed850324ddfb134 (patch)
treee55e8a1efd01af1618a75ebeb93f873fb06c4a11 /src/include
parentAdd (partly-functional) user interface for editing configuration settings (diff)
downloadipxe-637a891264f4f81533e58f1b5ed850324ddfb134.tar.gz
ipxe-637a891264f4f81533e58f1b5ed850324ddfb134.tar.xz
ipxe-637a891264f4f81533e58f1b5ed850324ddfb134.zip
Fix prototype of sleep() and move it to unistd.h
Diffstat (limited to 'src/include')
-rw-r--r--src/include/etherboot.h2
-rw-r--r--src/include/unistd.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/include/etherboot.h b/src/include/etherboot.h
index e5a181536..b26379c26 100644
--- a/src/include/etherboot.h
+++ b/src/include/etherboot.h
@@ -9,6 +9,7 @@
#include "compiler.h"
#include "stddef.h"
#include "stdint.h"
+#include <unistd.h>
/*
@@ -220,7 +221,6 @@ extern int load_block P((unsigned char *, unsigned int, unsigned int, int ));
/* misc.c */
extern void twiddle P((void));
-extern void sleep P((int secs));
extern void interruptible_sleep P((int secs));
extern int strcasecmp P((const char *a, const char *b));
extern char *substr P((const char *a, const char *b));
diff --git a/src/include/unistd.h b/src/include/unistd.h
index f3412d400..35dcf5845 100644
--- a/src/include/unistd.h
+++ b/src/include/unistd.h
@@ -4,6 +4,7 @@
#include <stddef.h>
#include <stdarg.h>
+extern unsigned int sleep ( unsigned int seconds );
extern int execv ( const char *command, char * const argv[] );
/**