Have an epoll module.
[apps/pfixtools.git] / common.h
index 207ca6e..449ead5 100644 (file)
--- a/common.h
+++ b/common.h
  * Copyright © 2007 Pierre Habouzit
  */
 
-#ifndef POSTLICYD_H
-#define POSTLICYD_H
+#ifndef PFIXTOOLS_H
+#define PFIXTOOLS_H
 
 #include <errno.h>
+#include <fcntl.h>
 #include <limits.h>
+#include <netinet/in.h>
 #include <pthread.h>
 #include <signal.h>
 #include <stdbool.h>
 #include <stdbool.h>
-#include <stdio.h>
 #include <stdint.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <syslog.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/types.h>
+#include <time.h>
 #include <unistd.h>
 
 #define UNIXERR(fun)                                    \
@@ -60,11 +64,10 @@ typedef void (*exitcall_t)(void);
 #define __init __attribute__((__used__,__section__(".mad.init")))
 #define __exit __attribute__((__used__,__section__(".mad.exit")))
 
-#define module_init(fn)  static initcall_t __init_##fn __init = fn;
-#define module_exit(fn)  static exitcall_t __exit_##fn __exit = fn;
+#define module_init(fn)  static __init initcall_t __init_##fn = fn;
+#define module_exit(fn)  static __exit exitcall_t __exit_##fn = fn;
 
 /* common.c */
-extern sig_atomic_t cleanexit;
 extern sig_atomic_t sigint;
 extern sig_atomic_t sighup;