diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 78e2ff9881674c4a8830031c51e5cd102be8e3d1..b18dcbf2ef0f9a31294a48cd390fb4b64575f19d 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