remove OpenBSD #warning (obsd maintainer says no longer needed)

master
leitner 8 years ago
parent 1a53c2221a
commit b4c4eb607e

@ -1,4 +1,5 @@
0.32:
remove OpenBSD #warning (obsd maintainer says no longer needed)
0.31:
special case buffer_get_token with token length 1 through memccpy (almost 4x speedup)

@ -11,15 +11,8 @@ int io_passfd(int64 sock,int64 fd) {
#define _NETBSD_SOURCE
#endif
#ifdef __OpenBSD__
#warning This is a HORRIBLE kludge around yet another thing OpenBSD broke
#warning If they make it possible to do file descriptor passing with
#warning _XOPEN_SOURCE defined, please send me an email so I can remove this.
#warning _XOPEN_SOURCE needs to be defined for this to work on Solaris.
#else
#define _XOPEN_SOURCE
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include <stddef.h>
#include <sys/types.h>
#include <sys/time.h>

@ -12,4 +12,4 @@ disk file named \fIs\fR, and returns 1.
If something goes wrong, io_readfile sets \fIerrno\fR to indicate the error, and
returns 0; it does not create a new descriptor, and it does not touch d.
.SH "SEE ALSO"
io_createfilefile(3), io_appendfile(3), io_readwritefile(3)
io_createfile(3), io_appendfile(3), io_readwritefile(3)

@ -11,15 +11,8 @@ int64 io_receivefd(int64 sock) {
#define _NETBSD_SOURCE
#endif
#ifdef __OpenBSD__
#warning This is a HORRIBLE kludge around yet another thing OpenBSD broke
#warning If they make it possible to do file descriptor passing with
#warning _XOPEN_SOURCE defined, please send me an email so I can remove this.
#warning _XOPEN_SOURCE needs to be defined for this to work on Solaris.
#else
#define _XOPEN_SOURCE
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include <stddef.h>
#include <sys/types.h>
#include <sys/socket.h>

Loading…
Cancel
Save