[BACK]Return to patch-src_mserv.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches

File: [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches / Attic / patch-src_mserv.c (download)

Revision 1.1, Mon Jun 15 10:32:52 2020 UTC (17 months, 2 weeks ago) by micha
Branch: MAIN

games/doomlegacy: Build fix for Solaris

Use native inet_aton() on Solaris.
Solaris has inet_aton() in libresolv since version 2.6 from 1997.

No revision bump because this only affects the Solaris build that was
broken before.

$NetBSD: patch-src_mserv.c,v 1.1 2020/06/15 10:32:52 micha Exp $

Use native inet_aton() on Solaris.

--- src/mserv.c.orig	2020-05-10 22:05:17.000000000 +0000
+++ src/mserv.c
@@ -210,7 +210,9 @@ struct Copy_CVarMS_t
 #define close closesocket
 #endif
 
-#if defined( WIN32) || defined( __OS2__) || defined( SOLARIS)
+// For pkgsrc: Use native inet_aton() on Solaris
+// Solaris has inet_aton() in libresolv since version 2.6 from 1997
+#if defined( WIN32) || defined( __OS2__) // || defined( SOLARIS)
 // it seems windows doesn't define that... maybe some other OS? OS/2
 static inline
 int inet_aton(const char *hostname,