Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 19:37:02 GMT
From:      Christoph Moench-Tegeder <cmt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: e8d724f77612 - 2022Q4 - www/firefox: fix build on 12
Message-ID:  <202210121937.29CJb2JV020117@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q4 has been updated by cmt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e8d724f7761256eb9f4c467d535907dfd5abcf42

commit e8d724f7761256eb9f4c467d535907dfd5abcf42
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2022-10-12 19:34:21 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2022-10-12 19:36:49 +0000

    www/firefox: fix build on 12
    
      In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:24:
      /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
    
    requires sys/types.h
    
    Reported by:    pkg-fallout
    
    (cherry picked from commit 2cd24269e082592bb05a973f534757a36c4bebb6)
---
 ...third__party_libwebrtc_rtc__base_ip__address.cc | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc b/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
new file mode 100644
index 000000000000..5af9e7ec2d70
--- /dev/null
+++ b/www/firefox/files/patch-third__party_libwebrtc_rtc__base_ip__address.cc
@@ -0,0 +1,23 @@
+commit d1f5a45c1906e9f1e6a51f3b44c52d981bb3958c
+Author: Christoph Moench-Tegeder <cmt@burggraben.net>
+Date:   Wed Oct 12 19:57:20 2022 +0200
+
+    pull in sys/types.h for u_XXX typedefs on FreeBSD 12
+    
+    In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-106.0/third_party/libwebrtc/rtc_base/ip_address.cc:20:
+    /usr/include/netinet/ip.h:53:2: error: unknown type name 'u_char'; did you mean 'char'?
+            u_char  ip_hl:4,                /* header length */
+
+diff --git third_party/libwebrtc/rtc_base/ip_address.cc third_party/libwebrtc/rtc_base/ip_address.cc
+index d544b611e149..ef9b742dac5f 100644
+--- third_party/libwebrtc/rtc_base/ip_address.cc
++++ third_party/libwebrtc/rtc_base/ip_address.cc
+@@ -11,6 +11,8 @@
+ #if defined(WEBRTC_POSIX)
+ #include <netinet/in.h>
+ #include <sys/socket.h>
++/* for u_char/u_short etc on FreeBSD 12 */
++#include <sys/types.h>
+ 
+ #include "absl/strings/string_view.h"
+ #ifdef OPENBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210121937.29CJb2JV020117>