summary refs log tree commit diff
diff options
context:
space:
mode:
authorLain Iwakura <lain@lainmail.xyz>2025-12-30 01:03:38 +0300
committerLain Iwakura <lain@lainmail.xyz>2025-12-30 01:03:38 +0300
commit119edf5f908cfbee39f4d12ecdcaf3dbcddd8e01 (patch)
tree8bb590fb3b3edd0d417d8d99602768b0834ff73e
parentfix(ssl): fix ssl fully (diff)
downloadftp-119edf5f908cfbee39f4d12ecdcaf3dbcddd8e01.tar.gz
ftp-119edf5f908cfbee39f4d12ecdcaf3dbcddd8e01.zip
fix(linux): fix building for linux
-rw-r--r--compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index ad0b45d..89e00ac 100644
--- a/compat.h
+++ b/compat.h
@@ -10,6 +10,14 @@
 #include <stdarg.h>
 
 #ifndef __OpenBSD__
+#ifndef __dead
+#if defined(__GNUC__) || defined(__clang__)
+#define __dead __attribute__((noreturn))
+#else
+#define __dead
+#endif
+#endif
+
 #ifndef HOST_NAME_MAX
 #ifdef _POSIX_HOST_NAME_MAX
 #define HOST_NAME_MAX _POSIX_HOST_NAME_MAX