[PATCH] qresolverstandardworkers_p.cpp

Adriaan de Groot adridg at cs.kun.nl
Sun Nov 16 22:44:56 GMT 2003


OK, here's a tough one, for Thiago mostly. In _some_ varieties of FreeBSD
(current -CURRENT, mostly), EAI_NODATA and EAI_NONAME are identical. The
evildoer is

netdb.h:#define EAI_NODATA      EAI_NONAME      /* to be removed on 23
        Apr 2004 */

and I have no idea why or how or where - while in -STABLE those two are
defined as 7 and 8 respectively. Anyway, this leads to duplicate case
values, which are bad.

SHould this go in KDE CVS? Or is it too platform-specific and leave it in
FreeBSD ports patches? [What about kicking the shit out of whoever
#defined those two together, anyway?]

-- 
 Adriaan de Groot    adridg at cs.kun.nl     Kamer A6020     024-3652272
GPG Key Fingerprint 934E 31AA 80A7 723F 54F9  50ED 76AC EE01 FEA2 A3FE
               http://www.cs.kun.nl/~adridg/research/
-------------- next part --------------
Index: qresolverstandardworkers_p.cpp
===================================================================
RCS file: /home/kde/kdenonbeta/libqt-addon/libqt-addon/qresolverstandardworkers_p.cpp,v
retrieving revision 1.8
diff -U2 -r1.8 qresolverstandardworkers_p.cpp
--- qresolverstandardworkers_p.cpp	28 Jul 2003 16:25:38 -0000	1.8
+++ qresolverstandardworkers_p.cpp	16 Nov 2003 22:28:51 -0000
@@ -670,7 +670,9 @@
 	  break;
 
+#if EAI_NODATA != EAI_NONAME
 	case EAI_NODATA:
 	  setError(QResolver::NoData);
 	  break;
+#endif
 
 	case EAI_FAMILY:
-------------- next part --------------
_______________________________________________
kde-freebsd mailing list
kde-freebsd at lists.csociety.org
https://lists.csociety.org/listinfo/kde-freebsd


More information about the kde-core-devel mailing list