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 752898 - Using AF_INET needs #include <sys/socket.h>
Using AF_INET needs #include <sys/socket.h>
Status: RESOLVED FIXED
Product: libgrss
Classification: Other
Component: General
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: Libgrss Maintainers
Libgrss Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-26 17:10 UTC by Ting-Wei Lan
Modified: 2015-07-26 17:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: include sys/socket.h because AF_INET is used (620 bytes, patch)
2015-07-26 17:11 UTC, Ting-Wei Lan
committed Details | Review

Description Ting-Wei Lan 2015-07-26 17:10:34 UTC
Some files use AF_INET constant without including sys/socket.h, which causes error on FreeBSD:

feeds-subscriber.c:429:24: error: use of undeclared identifier 'AF_INET'
        low_addr.sin_family = AF_INET;
                              ^
feeds-subscriber.c:433:13: error: use of undeclared identifier 'AF_INET'
        inet_pton (AF_INET, ip, &low_addr.sin_addr);
                   ^
Comment 1 Ting-Wei Lan 2015-07-26 17:11:57 UTC
Created attachment 308179 [details] [review]
build: include sys/socket.h because AF_INET is used
Comment 2 Igor Gnatenko 2015-07-26 17:16:27 UTC
Attachment 308179 [details] pushed as ea384b9 - build: include sys/socket.h because AF_INET is used