ossp-pkg/l2/l2_ch_buffer.c 1.28 -> 1.29
--- l2_ch_buffer.c 2001/10/30 08:12:28 1.28
+++ l2_ch_buffer.c 2001/10/30 18:55:27 1.29
@@ -28,12 +28,15 @@
*/
#include "l2.h"
-#include "l2_p.h" /* for TRACE() */
+#include "l2_p.h" /* for TRACE macro */
#include <string.h>
-#include <unistd.h> /* for alarm() and setitime() */
-#include <signal.h> /* for use of sigaction() and SIGALRM */
-//FIXME feedback from lmtp2nntp 1.1b2 tester Lawrence "Larry" Greenfield //<leg+@andrew.cmu.edu> "[...] on Linux, l2_ch_buffer.c needed a #include //<sys/time.h> [...]"
+#include <unistd.h> /* for alarm(3) */
+#include <signal.h> /* for sigaction(2) and SIGALRM */
+
+#ifdef HAVE_SETITIMER
+#include <sys/time.h> /* for setitimer(2) */
+#endif
#define L2_BUFFER_TIMER ITIMER_REAL /* calls to [s|g]etitimer() and alarm() */
|
|