Browse Source

Uh, it's #warning and not #warn. *blush*

master
Felix von Leitner 15 years ago
parent
commit
e868cb15bb
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      io/io_passfd.c
  2. +4
    -4
      io/io_receivefd.c

+ 4
- 4
io/io_passfd.c View File

@@ -8,10 +8,10 @@ int io_passfd(int64 sock,int64 fd) {
#else

#ifdef __OpenBSD__
#warn This is a HORRIBLE kludge around yet another thing OpenBSD broke
#warn If they make it possible to do file descriptor passing with
#warn _XOPEN_SOURCE defined, please send me an email so I can remove this.
#warn _XOPEN_SOURCE needs to be defined for this to work on Solaris.
#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


+ 4
- 4
io/io_receivefd.c View File

@@ -8,10 +8,10 @@ int64 io_receivefd(int64 sock) {
#else

#ifdef __OpenBSD__
#warn This is a HORRIBLE kludge around yet another thing OpenBSD broke
#warn If they make it possible to do file descriptor passing with
#warn _XOPEN_SOURCE defined, please send me an email so I can remove this.
#warn _XOPEN_SOURCE needs to be defined for this to work on Solaris.
#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


Loading…
Cancel
Save