fox: SunOS build fix

This commit is contained in:
tnn 2022-04-25 15:17:21 +00:00
parent 1520bae000
commit 84bf1eea48
2 changed files with 18 additions and 1 deletions

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.25 2021/10/26 11:33:48 nia Exp $
$NetBSD: distinfo,v 1.26 2022/04/25 15:17:21 tnn Exp $
BLAKE2s (fox-1.6.57.tar.gz) = 6ecaf9f17afdcec1d5e4797d36178600913b217688954bb5f720057e8921b8b9
SHA512 (fox-1.6.57.tar.gz) = e7b91054a9ea674818803415284cb61572935d22466e446cb37ef68344e2684e8acd567f7c8a6912f939dcbcc37455119ad6a01ac30513f460d0b3937b7e6087
Size (fox-1.6.57.tar.gz) = 4284018 bytes
SHA1 (patch-aa) = 06444b562a32d3471dd8d65f5af2c49e11b3e491
SHA1 (patch-src_FXGUISignal.cpp) = 389f3a8ee75942cb6c52eedd0c9d429db4e521b1

View file

@ -0,0 +1,16 @@
$NetBSD: patch-src_FXGUISignal.cpp,v 1.1 2022/04/25 15:17:21 tnn Exp $
Include <sys/filio.h> for FIONREAD on SunOS.
--- src/FXGUISignal.cpp.orig 2018-04-04 03:42:42.000000000 +0000
+++ src/FXGUISignal.cpp
@@ -40,6 +40,9 @@
#ifdef __CYGWIN__
#include <asm/socket.h> /* For FIONREAD */
#endif
+#ifdef __sun
+#include <sys/filio.h> /* For FIONREAD */
+#endif
#else
#include <process.h>
#endif