Browse Source

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

master
Felix von Leitner 4 years ago
parent
commit
35f10a2f72
4 changed files with 2 additions and 15 deletions
  1. +1
    -0
      CHANGES
  2. +0
    -7
      io/io_passfd.c
  3. +1
    -1
      io/io_readfile.3
  4. +0
    -7
      io/io_receivefd.c

+ 1
- 0
CHANGES View File

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


+ 0
- 7
io/io_passfd.c View File

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


+ 1
- 1
io/io_readfile.3 View File

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

+ 0
- 7
io/io_receivefd.c View File

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