This website works better with JavaScript.
Home
Explore
Register
Sign In
Fincer
/
openntpd-portable
mirror of
https://github.com/Fincer/openntpd-portable
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
10
Wiki
Activity
Browse Source
use __dead macro from sys/cdefs.h
OPENBSD_6_1
Brent Cook
8 years ago
parent
6b32cedc37
commit
a7577667d6
2 changed files
with
16 additions
and
4 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-0
include/sys/cdefs.h
+0
-4
include/sys/types.h
+ 16
- 0
include/sys/cdefs.h
View File
@ -0,0 +1,16 @@
/*
*
Public
domain
*
sys
/
cdefs
.
h
compatibility
shim
*/
#
include
_next <sys/cdefs.h>
#
ifndef LIBCOMPAT_SYS_CDEFS_H
#
define LIBCOMPAT_SYS_CDEFS_H
#
if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#
define __dead __attribute__((__noreturn__))
#
define __pure __attribute__((__const__))
#
endif
#
endif
+ 0
- 4
include/sys/types.h
View File
@ -14,10 +14,6 @@
#
include
<_bsd_types.h>
#
include
<_bsd_types.h>
#
endif
#
endif
#
if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#
define __dead
#
endif
#
if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
#
if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
#
define __bounded__(x, y, z)
#
define __bounded__(x, y, z)
#
endif
#
endif
Write
Preview
Loading…
Cancel
Save