pkgsrc/security/libgcrypt/patches/patch-af
adam d779ce5514 Changes 1.4.3:
* Try to auto-initialize Libgcrypt to minimize the effect of
  applications not doing that correctly.  This is not a perfect
  solution but given that many applicationion would totally fail
  without such a hack, we try to help at least with the most common
  cases.  Folks, please read the manual to learn how to properly
  initialize Libgcrypt!
* Auto-initialize the secure memory to 32k instead of aborting the
  process.
* Log fatal errors via syslog.
* Changed the name and the semantics of the fips mode config file.
* Add convenience macro gcry_fips_mode_active.
* More self-tests.
* Documentation cleanups.
2008-10-14 11:33:13 +00:00

52 lines
1.4 KiB
Text

$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);