Author: marcel
Date: Mon Oct 24 17:56:08 2016
New Revision: 307870
URL: https://svnweb.freebsd.org/changeset/base/307870

Log:
  When compiling on macOS or Linux, __dead can be defined already.
  Conditionally define __dead.

Modified:
  head/lib/libnetbsd/sys/cdefs.h

Modified: head/lib/libnetbsd/sys/cdefs.h
==============================================================================
--- head/lib/libnetbsd/sys/cdefs.h      Mon Oct 24 17:37:21 2016        
(r307869)
+++ head/lib/libnetbsd/sys/cdefs.h      Mon Oct 24 17:56:08 2016        
(r307870)
@@ -35,11 +35,13 @@
 
 #include_next <sys/cdefs.h>
 
+#ifndef __dead
 #ifdef __dead2
 #define __dead __dead2
 #else
 #define __dead
 #endif
+#endif /* !__dead */
 
 /*
  * The __CONCAT macro is used to concatenate parts of symbol names, e.g.
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to