aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-05-24 13:48:56 +0200
committerWynn Wolf Arbor2020-05-24 14:05:54 +0200
commit2ca0c5e6f60a7814d3e84e2baa43b55ba6f5304d (patch)
treeda588c51b65e009bb7f7ac87cff3b8f6e705a401 /slowcgi.c
parent4872304086721d26e38796da0d65ee5d24a1ce3e (diff)
downloadslowcgi-2ca0c5e6f60a7814d3e84e2baa43b55ba6f5304d.tar.gz
Use corresponding attributes for __packed and __dead
Diffstat (limited to '')
-rw-r--r--slowcgi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 8def399..63e7c1a 100644
--- a/slowcgi.c
+++ b/slowcgi.c
@@ -39,6 +39,14 @@
#include <syslog.h>
#include <unistd.h>
+#ifndef __packed
+#define __packed __attribute__((packed))
+#endif
+
+#ifndef __dead
+#define __dead __attribute__((noreturn))
+#endif
+
#define TIMEOUT_DEFAULT 120
#define SLOWCGI_USER "www"