fix build on non-OpenBSD systems

not every system has a __dead attribute for functions.  This fixes the
build on FreeBSD.
This commit is contained in:
Omar Polo 2021-01-11 15:16:50 +00:00
parent 7b1d979032
commit 796c6e75d7
1 changed files with 4 additions and 0 deletions

4
gmid.h
View File

@ -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 */