From: Jonathan Wakely Date: Thu, 18 Feb 2021 17:24:05 +0000 (+0000) Subject: Fix warning about redefinition of _GNU_SOURCE X-Git-Tag: v6.4.2~12 X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=ba623158fe7eeaf8ad2bc90483d3d1f33aa403e8;p=SCSI2SD-V6.git Fix warning about redefinition of _GNU_SOURCE G++ implicitly defines _GNU_SOURCE=1 so define it consistently to avoid a warning about redefinition. --- diff --git a/src/scsi2sd-util6/libzipper-1.0.4/port/strerror_gnu.cc b/src/scsi2sd-util6/libzipper-1.0.4/port/strerror_gnu.cc index d41eddb2..036ad52f 100644 --- a/src/scsi2sd-util6/libzipper-1.0.4/port/strerror_gnu.cc +++ b/src/scsi2sd-util6/libzipper-1.0.4/port/strerror_gnu.cc @@ -15,7 +15,7 @@ // You should have received a copy of the GNU General Public License // along with libzipper. If not, see . -#define _GNU_SOURCE +#define _GNU_SOURCE 1 #include "../strerror.hh"