projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a threading framework
[apps/pfixtools.git]
/
common.h
diff --git
a/common.h
b/common.h
index
801457c
..
e70c9a7
100644
(file)
--- a/
common.h
+++ b/
common.h
@@
-33,14
+33,13
@@
* Copyright © 2007 Pierre Habouzit
*/
* Copyright © 2007 Pierre Habouzit
*/
-#ifndef PFIXTOOLS_H
-#define PFIXTOOLS_H
+#ifndef PFIXTOOLS_
COMMON_
H
+#define PFIXTOOLS_
COMMON_
H
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <netinet/in.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 <signal.h>
#include <stdbool.h>
#include <stdbool.h>
@@
-54,6
+53,8
@@
#include <time.h>
#include <unistd.h>
#include <time.h>
#include <unistd.h>
+#include "mem.h"
+
#define UNIXERR(fun) \
syslog(LOG_ERR, "%s:%d:%s: %s: %m", \
__FILE__, __LINE__, __func__, fun)
#define UNIXERR(fun) \
syslog(LOG_ERR, "%s:%d:%s: %s: %m", \
__FILE__, __LINE__, __func__, fun)