--- pth.h.in 2002/10/15 21:14:27 1.132
+++ pth.h.in 2002/10/23 14:04:00 1.133
@@ -39,10 +39,11 @@
#endif
/* essential headers */
-#include <sys/types.h> /* for ssize_t, off_t */
-#include <sys/time.h> /* for struct timeval */
-#include <sys/socket.h> /* for sockaddr */
-#include <sys/signal.h> /* for sigset_t */
+#include <sys/types.h> /* for ssize_t, off_t */
+#include <time.h> /* for struct timespec */
+#include <sys/time.h> /* for struct timeval */
+#include <sys/socket.h> /* for sockaddr */
+#include <sys/signal.h> /* for sigset_t */
@EXTRA_INCLUDE_SYS_SELECT_H@
/* fallbacks for essential typedefs */
@@ -58,6 +59,7 @@
/* extra structure definitions */
struct timeval;
+struct timespec;
/* essential values */
#ifndef FALSE
@@ -492,6 +494,7 @@
extern ssize_t pth_sendto_ev(int, const void *, size_t, int, const struct sockaddr *, socklen_t, pth_event_t);
/* standard replacement functions */
+extern int pth_nanosleep(const struct timespec *, struct timespec *);
extern int pth_usleep(unsigned int);
extern unsigned int pth_sleep(unsigned int);
extern pid_t pth_waitpid(pid_t, int *, int);
|