cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1277 NI_MAXSERV missing with SunStudio Compiler on Solaris

From: D.Flinkmann <daniel_nrw_at_users.sf.net>
Date: Tue, 10 Sep 2013 13:23:47 +0000

---
** [bugs:#1277] NI_MAXSERV missing with SunStudio Compiler on Solaris**
**Status:** open
**Labels:** SunStudio Solaris 
**Created:** Tue Sep 10, 2013 01:23 PM UTC by D.Flinkmann
**Last Updated:** Tue Sep 10, 2013 01:23 PM UTC
**Owner:** nobody
When curl is compiled on Solaris with the SunStudio Compiler, hostip6.c is missing NI_MAXSERV. 
To fix it, following patch will add the definition just for SunStudio compilers: 
--- curl-7.32.0/lib/hostip6.c_orig      
+++ curl-7.32.0/lib/hostip6.c   
@@ -36,6 +36,10 @@
 #include <inet.h>
 #endif
 
+#if defined(__SUNPRO_C)
+#define NI_MAXSERV      32
+#endif
+
 #ifdef HAVE_PROCESS_H
 #include <process.h>
 #endif
I am using this patch since curl 7.29.0 and I still apply it to curl 7.32.0 .
Please have a look. 
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-09-10

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET