After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604875 - Use of sa_len conflicts with system header
Use of sa_len conflicts with system header
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.23.x
Other other
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-12-18 02:34 UTC by Tim Rice
Modified: 2009-12-18 09:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sa_len is used in sys/socket.h on soem platforms (1.38 KB, text/plain)
2009-12-18 02:36 UTC, Tim Rice
Details

Description Tim Rice 2009-12-18 02:34:49 UTC
UnixWare was throwing up an error on any program that included
gio/gnetworkingprivate.h
......
UX:acomp: ERROR: "/opt/src/libs/glib-2.23.0/gio/gnetworkingprivate.h", line 76:Syntax error before or at: .
......
The problem is sys/socket.h has
#define sa_len          sa_un.sa_s.sa_saus_len

See also http://bugs.gentoo.org/show_bug.cgi?&id=292081 for a similar
report on IRIX.

I'll attach a patch for your consideration.
Comment 1 Tim Rice 2009-12-18 02:36:21 UTC
Created attachment 149961 [details]
sa_len is used in sys/socket.h on soem platforms
Comment 2 Dan Winship 2009-12-18 09:29:32 UTC
I used just "len" rather than "g_sa_len". Pushed to git.