trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject [1/2] git commit: TS-1689: fix wccp compile under OmniOS/gcc-4.7
Date Mon, 04 Feb 2013 14:49:24 GMT
TS-1689: fix wccp compile under OmniOS/gcc-4.7

Solaris (Illumos?) considers SIOCGIFCONF obsolete, unless BSD
compatibility is required.

Also, # include <string.h> to declare strerror_r()


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/37920f30
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/37920f30
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/37920f30

Branch: refs/heads/master
Commit: 37920f307c46a421d31b53c78eaade05552f029e
Parents: bb6dd3f
Author: Igor Galić <i.galic@brainsware.org>
Authored: Mon Feb 4 14:46:57 2013 +0000
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Mon Feb 4 14:46:57 2013 +0000

----------------------------------------------------------------------
 lib/wccp/WccpStatic.cc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/37920f30/lib/wccp/WccpStatic.cc
----------------------------------------------------------------------
diff --git a/lib/wccp/WccpStatic.cc b/lib/wccp/WccpStatic.cc
index 3030601..92524f7 100644
--- a/lib/wccp/WccpStatic.cc
+++ b/lib/wccp/WccpStatic.cc
@@ -22,10 +22,17 @@
 
 # include "WccpLocal.h"
 # include "WccpMeta.h"
+
+/* Solaris considers SIOCGIFCONF obsolete and only defines it if
+ * BSD compatibility activated. */
+# if defined(solaris)
+# define BSD_COMP
+# endif
 # include <sys/ioctl.h>
 # include <sys/socket.h>
 # include <net/if.h>
 # include <stdarg.h>
+# include <string.h>
 # include <errno.h>
 # include <stdio.h>
 


Mime
View raw message