From 0ced8b126faec2635eb930a129cb7d5a97b30945 Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Wed, 25 Oct 2006 20:01:44 +0000
Subject: [PATCH] Get rid of annoying compiler warning message about
 _GNU_SOURCE already being #defined.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2308 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/smartd.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp
index 78e2ff988..b18dcbf2e 100644
--- a/sm5/smartd.cpp
+++ b/sm5/smartd.cpp
@@ -20,8 +20,11 @@
  *
  */
 
-// unconditionally included files
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
+
+// unconditionally included files
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>   // umask
@@ -115,14 +118,14 @@ extern "C" int getdomainname(char *, int); // no declaration in header files!
 extern const char *atacmdnames_c_cvsid, *atacmds_c_cvsid, *ataprint_c_cvsid, *escalade_c_cvsid, 
                   *knowndrives_c_cvsid, *os_XXXX_c_cvsid, *scsicmds_c_cvsid, *utility_c_cvsid;
 
-static const char *filenameandversion="$Id: smartd.cpp,v 1.380 2006/10/25 06:52:07 ballen4705 Exp $";
+static const char *filenameandversion="$Id: smartd.cpp,v 1.381 2006/10/25 20:01:44 ballen4705 Exp $";
 #ifdef NEED_SOLARIS_ATA_CODE
 extern const char *os_solaris_ata_s_cvsid;
 #endif
 #ifdef _WIN32
 extern const char *daemon_win32_c_cvsid, *hostname_win32_c_cvsid, *syslog_win32_c_cvsid;
 #endif
-const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.380 2006/10/25 06:52:07 ballen4705 Exp $" 
+const char *smartd_c_cvsid="$Id: smartd.cpp,v 1.381 2006/10/25 20:01:44 ballen4705 Exp $" 
 ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID
 #ifdef DAEMON_WIN32_H_CVSID
 DAEMON_WIN32_H_CVSID
-- 
GitLab