aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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