summaryrefslogtreecommitdiff
path: root/databases/mysql51-client/patches/patch-am
blob: 69d9e0fc54f78d97726ffc4deabeaf2e9a3154bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-am,v 1.2 2010/09/21 15:57:30 taca Exp $

* Define SHUT_RDWR for Irix 5.

--- include/my_net.h.orig	2010-02-04 11:37:06.000000000 +0000
+++ include/my_net.h
@@ -64,6 +64,15 @@ C_MODE_START
 
 #endif
 
+#if defined(__sgi) && !defined(SHUT_RDWR)
+
+/*
+  IRIX 5 does not define SHUT_RDWR
+*/
+
+#define SHUT_RDWR 2
+#endif
+
 /*
   On OSes which don't have the in_addr_t, we guess that using uint32 is the best
   possible choice. We guess this from the fact that on HP-UX64bit & FreeBSD64bit