summaryrefslogtreecommitdiff
path: root/databases/mysql56-client/patches/patch-include_my_net.h
blob: 7f824e33a3f020d8a18214462a3d7cca28909796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-include_my_net.h,v 1.2 2019/09/06 10:01:44 taca Exp $

* Define SHUT_RDWR for Irix 5.
* Stop useless warnings.

--- include/my_net.h.orig	2019-06-10 10:25:32.000000000 +0000
+++ include/my_net.h
@@ -70,14 +70,25 @@ C_MODE_START
 #include <netdb.h>     /* getaddrinfo() & co */
 #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
   & Solaris64bit, in_addr_t is equivalent to uint32. And on Linux32bit too.
 */
 #ifndef HAVE_IN_ADDR_T
+#ifndef in_addr_t
 #define in_addr_t uint32
 #endif
+#endif
 
 
 C_MODE_END