aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2006-12-16 17:10:47 +0000
committerDimitri Sokolyuk <demon@dim13.org>2006-12-16 17:10:47 +0000
commit23334b414142b0189e2291b05ca58375637cb205 (patch)
treee9d14a2905e8f36e144fb5b4b9fb884e4f6617c3
parentd6dd569d43c58e72115a47ab9a3f085b3731b013 (diff)
fix linux defines
-rw-r--r--watch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/watch.c b/watch.c
index 509689a..3e10711 100644
--- a/watch.c
+++ b/watch.c
@@ -35,7 +35,11 @@ static const char version[] = "1.0";
#include <unistd.h>
#if defined(__linux__)
-#define __dead __volatile
+#ifndef __dead
+#define __dead __attribute__((noreturn))
+#endif
+#define strlcpy(d,s,l) (strncpy(d,s,l), (d)[(l)-1 = '\0')
+#define strlcat(d,s,l) strncat(d,s,(l) - strlen(d) - 1)
#endif
#ifndef DELAY