Module Name: othersrc
Committed By: lukem
Date: Thu Mar 21 01:17:20 UTC 2013
Modified Files:
othersrc/libexec/tnftpd: tnftpd.h
Log Message:
compat workarounds for __attribute__ and __dead
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 othersrc/libexec/tnftpd/tnftpd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/libexec/tnftpd/tnftpd.h
diff -u othersrc/libexec/tnftpd/tnftpd.h:1.33 othersrc/libexec/tnftpd/tnftpd.h:1.34
--- othersrc/libexec/tnftpd/tnftpd.h:1.33 Sat Nov 7 09:59:09 2009
+++ othersrc/libexec/tnftpd/tnftpd.h Thu Mar 21 01:17:20 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: tnftpd.h,v 1.33 2009/11/07 09:59:09 lukem Exp $ */
+/* $NetBSD: tnftpd.h,v 1.34 2013/03/21 01:17:20 lukem Exp $ */
#define FTPD_VERSION PACKAGE_STRING
@@ -591,3 +591,15 @@ int usleep(unsigned int);
# endif
# define SKEY 1
#endif
+
+
+/*
+ * Compatibility for stuff in NetBSD <sys/cdefs.h>
+ */
+
+#if !defined(__attribute__) && !defined(__GNUC__)
+#define __attribute__(x)
+#endif
+
+#undef __dead
+#define __dead