52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
$NetBSD: patch-af,v 1.2 2005/03/10 15:38:33 tv Exp $
|
|
|
|
--- src/ath.c.orig Sat Dec 18 13:31:53 2004
|
|
+++ src/ath.c
|
|
@@ -24,11 +24,6 @@
|
|
|
|
#include <assert.h>
|
|
#include <unistd.h>
|
|
-#ifdef HAVE_SYS_SELECT_H
|
|
-# include <sys/select.h>
|
|
-#else
|
|
-# include <sys/time.h>
|
|
-#endif
|
|
#include <sys/types.h>
|
|
#ifndef _WIN32
|
|
#include <sys/wait.h>
|
|
@@ -300,7 +295,7 @@ ath_connect (int s, struct sockaddr *add
|
|
|
|
|
|
int
|
|
-#ifdef _WIN32
|
|
+#if defined(_WIN32) || defined(__INTERIX)
|
|
ath_sendmsg (int s, const void *msg, int flags)
|
|
#else
|
|
ath_sendmsg (int s, const struct msghdr *msg, int flags)
|
|
@@ -309,7 +304,7 @@ ath_sendmsg (int s, const struct msghdr
|
|
if (ops_set && ops.sendmsg)
|
|
return (*ops.sendmsg) (s, msg, flags);
|
|
else
|
|
-#ifdef _WIN32
|
|
+#if defined(_WIN32) || defined(__INTERIX)
|
|
return -1;
|
|
#else
|
|
return sendmsg (s, msg, flags);
|
|
@@ -318,7 +313,7 @@ ath_sendmsg (int s, const struct msghdr
|
|
|
|
|
|
int
|
|
-#ifdef _WIN32
|
|
+#if defined(_WIN32) || defined(__INTERIX)
|
|
ath_recvmsg (int s, void *msg, int flags)
|
|
#else
|
|
ath_recvmsg (int s, struct msghdr *msg, int flags)
|
|
@@ -327,7 +322,7 @@ ath_recvmsg (int s, struct msghdr *msg,
|
|
if (ops_set && ops.recvmsg)
|
|
return (*ops.recvmsg) (s, msg, flags);
|
|
else
|
|
-#ifdef _WIN32
|
|
+#if defined(_WIN32) || defined(__INTERIX)
|
|
return -1;
|
|
#else
|
|
return recvmsg (s, msg, flags);
|