Package: trafficserver
Version: 3.3.2-1
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD with:
"TrafficCop.cc:1870:40: error: 'initgroups' was not declared in this scope"

Please move "#include <grp.h>" outside linux specific section.

Also one more small fixup is needed.

Cheers

        Petr

--- plugins/experimental/tcp_info/tcp_info.cc
+++ plugins/experimental/tcp_info/tcp_info.cc
@@ -116,7 +116,7 @@

   int bytes = 0;
   if (config.log_level == 2) {
-#if !defined(freebsd)
+#if !defined(freebsd) || defined(__GLIBC__)
     bytes = snprintf(buffer, sizeof(buffer), "%s %u %u %s %s %u %u %u %u %u %u %u 
%u %u %u %u %u\n",
                      event_name,
                      (uint32_t)now.tv_sec,


--- cop/TrafficCop.cc
+++ cop/TrafficCop.cc
@@ -32,7 +32,6 @@
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>
-#include <grp.h>

 union semun
 {
@@ -43,6 +42,8 @@
 };
 #endif  // linux check

+#include <grp.h>
+
 // For debugging, turn this on.
 // #define TRACE_LOG_COP 1


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to