pkgsrc/databases/mysql57-client/patches/patch-include_my__global.h
adam 7cb1f0a9d9 MySQL is a SQL (Structured Query Language) database server. SQL is the most
popular database language in the world. MySQL is a client-server implementation
that consists of a server daemon `mysqld' and many different client
programs/libraries.

The main goals of MySQL are speed and robustness.

The base upon which MySQL is built is a set of routines that have been used in
a highly demanding production environment for many years.  While MySQL is still
in development it already offers a rich and highly useful function set.
2016-09-16 06:49:11 +00:00

20 lines
492 B
C

$NetBSD: patch-include_my__global.h,v 1.1 2016/09/16 06:49:11 adam Exp $
--- include/my_global.h.orig 2016-03-28 18:06:12.000000000 +0000
+++ include/my_global.h
@@ -145,6 +145,15 @@ static inline void sleep(unsigned long s
#define default_shared_memory_base_name "MYSQL"
#endif /* _WIN32*/
+#if defined(__sgi) && !defined(SHUT_RDWR)
+
+/*
+ IRIX 5 does not define SHUT_RDWR
+*/
+
+#define SHUT_RDWR 2
+#endif
+
/**
Cast a member of a structure to the structure that contains it.