Skip to content

Commit

Permalink
fix build on non-OpenBSD systems
Browse files Browse the repository at this point in the history
not every system has a __dead attribute for functions.  This fixes the
build on FreeBSD.
  • Loading branch information
omar-polo committed Jan 11, 2021
1 parent 7b1d979 commit 796c6e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gmid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 796c6e7

Please sign in to comment.