Files
pkgsrc-ng/security/libgcrypt/patches/patch-af
2013-09-26 17:14:40 +02:00

53 lines
1.4 KiB
Plaintext

$NetBSD: patch-af,v 1.3 2008/10/14 11:33:13 adam Exp $
--- src/ath.c.orig 2008-09-03 12:04:42.000000000 +0200
+++ src/ath.c
@@ -24,11 +24,6 @@
#include <assert.h> /* Right: We need to use assert and not gcry_assert. */
#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>
@@ -309,7 +304,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)
@@ -318,7 +313,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);
@@ -327,7 +322,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)
@@ -336,7 +331,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);