From 796c6e75d72a1fbd8ea1dd6ccaaaa57180eb3865 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 11 Jan 2021 15:16:50 +0000 Subject: fix build on non-OpenBSD systems not every system has a __dead attribute for functions. This fixes the build on FreeBSD. --- gmid.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- cgit v1.2.3