2021-06-22 12:12:36 +02:00
|
|
|
$NetBSD: patch-vio_viosocket.cc,v 1.2 2021/06/22 10:12:37 nia Exp $
|
2021-05-13 17:25:20 +02:00
|
|
|
|
2021-06-22 12:12:36 +02:00
|
|
|
* define ppoll on older NetBSD that only has pollts
|
2021-05-13 17:25:20 +02:00
|
|
|
|
|
|
|
--- vio/viosocket.cc.orig 2021-03-22 08:44:50.000000000 +0000
|
|
|
|
+++ vio/viosocket.cc
|
2021-06-22 12:12:36 +02:00
|
|
|
@@ -70,6 +70,13 @@
|
2021-05-13 17:25:20 +02:00
|
|
|
|
|
|
|
#include "mysql/psi/mysql_socket.h"
|
|
|
|
|
2021-06-22 12:12:36 +02:00
|
|
|
+#ifdef __NetBSD__
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#if !__NetBSD_Prereq__(9,99,71)
|
|
|
|
+#define ppoll pollts
|
|
|
|
+#endif
|
2021-05-13 17:25:20 +02:00
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
int vio_errno(Vio *vio MY_ATTRIBUTE((unused))) {
|
|
|
|
/* These transport types are not Winsock based. */
|
|
|
|
#ifdef _WIN32
|