[ZBX-69] "_GNU_SOURCE redefined" warning messaged Created: 2007 Sep 22  Updated: 2017 May 30  Resolved: 2007 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 1.4.3
Fix Version/s: 1.4.3

Type: Incident report Priority: Minor
Reporter: Alexei Vladishev Assignee: Alexei Vladishev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Here is a fix for a warning during compile on Fedora/RHEL - "... _GNU_SOURCE redefined ..."

— zabbix-1.4.2.orig/include/sysinc.h 2007-08-20 21:22:22.000000000 +0200
+++ zabbix-1.4.2/include/sysinc.h 2007-09-19 11:44:08.000000000 +0200
@@ -288,7 +288,9 @@

#ifdef HAVE_GETOPT_H

  1. ifdef HAVE_GETOPT_LONG
    1. define _GNU_SOURCE
  2. include <getopt.h>+# if !defined(_GNU_SOURCE)
    +# define _GNU_SOURCE
    +# endif
  1. endif
    #endif

http://www.zabbix.com/forum/showthread.php?t=7816


Generated at Sat Apr 19 01:25:46 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.