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 726458 - implicit declaration of function 'fchmod' on FreeBSD
implicit declaration of function 'fchmod' on FreeBSD
Product: dia
Classification: Other
Component: general
Other FreeBSD
: Normal normal
: 0.97.3
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Reported: 2014-03-16 15:24 UTC by Ting-Wei Lan
Modified: 2014-03-16 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---

Fix build problem on FreeBSD (805 bytes, patch)
2014-03-16 15:24 UTC, Ting-Wei Lan
none Details | Review

Description Ting-Wei Lan 2014-03-16 15:24:57 UTC
Created attachment 272064 [details] [review]
Fix build problem on FreeBSD

I got this error when building dia on FreeBSD:
load_save.c:1105:9: error: implicit declaration of function 'fchmod' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

We can change _POSIX_C_SOURCE to 200809L to solve this problem.
Comment 1 Hans Breuer 2014-03-16 15:55:05 UTC
Thanks, pushed to master an dia-0-97: