From 23334b414142b0189e2291b05ca58375637cb205 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 16 Dec 2006 17:10:47 +0000 Subject: fix linux defines --- watch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #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 -- cgit v1.2.3