Browse Source

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

master
Felix von Leitner 5 years ago
parent
commit
35f10a2f72
  1. 1
      CHANGES
  2. 7
      io/io_passfd.c
  3. 2
      io/io_readfile.3
  4. 7
      io/io_receivefd.c

1
CHANGES

@ -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)

7
io/io_passfd.c

@ -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>

2
io/io_readfile.3

@ -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)

7
io/io_receivefd.c

@ -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