]> gcc.gnu.org Git - gcc.git/commitdiff
re PR fortran/41219 (libgfortran build warnings)
authorTobias Burnus <burnus@net-b.de>
Fri, 4 Sep 2009 09:25:00 +0000 (11:25 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 4 Sep 2009 09:25:00 +0000 (11:25 +0200)
2009-09-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41219
        * intrinsics/getlog.c: Define _POSIX for MINGW32.

From-SVN: r151417

libgfortran/ChangeLog
libgfortran/intrinsics/getlog.c

index 065a4ba3c73f9267d4f9a7f487b0137586beda4f..14d823d376cd5201d83f8810bd3a79b0e4fa2c54 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-04  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/41219
+       * intrinsics/getlog.c: Define _POSIX for MINGW32.
+
 2009-09-03  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/41219
index 0456c5796a289654d96ac70b0e075684c42aa6cd..e75aa1cb7d26a2a730d230d49f952ccdb055adc3 100644 (file)
@@ -28,6 +28,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include <string.h>
 
 #ifdef HAVE_UNISTD_H
+#  if defined __MINGW32__ && defined  HAVE_GETLOGIN
+#    define _POSIX 1
+#  endif
 #include <unistd.h>
 #endif
 #ifdef HAVE_PWD_H
This page took 0.062928 seconds and 5 git commands to generate.