aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-11 15:16:50 +0000
committerOmar Polo <op@omarpolo.com>2021-01-11 15:16:50 +0000
commit796c6e75d72a1fbd8ea1dd6ccaaaa57180eb3865 (patch)
treed0c3a6986b5ee4a7994b9bc02f916c8230931f1e
parent7b1d97903280066059ed4b00d4d407876957d071 (diff)
fix build on non-OpenBSD systems1.4.1
not every system has a __dead attribute for functions. This fixes the build on FreeBSD.
-rw-r--r--gmid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gmid.h b/gmid.h
index e145d1a..25a5262 100644
--- a/gmid.h
+++ b/gmid.h
@@ -37,6 +37,10 @@
# define INFTIM -1
#endif
+#ifndef __dead
+# define __dead
+#endif
+
#define GEMINI_URL_LEN (1024+3) /* URL max len + \r\n + \0 */
/* large enough to hold a copy of a gemini URL and still have extra room */