diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-04 09:25:00 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-04 09:25:00 +0000 |
commit | 0ae69d8de9cd14e20268bf32d29b365c788993de (patch) | |
tree | b8fbca8096b6ad4035b8d61a5bfe6d6386181aa4 /libgfortran/intrinsics | |
parent | 38516f30458ec45627fcde37744b3d6b5f67516b (diff) | |
download | gcc-0ae69d8de9cd14e20268bf32d29b365c788993de.tar.gz |
2009-09-04 Tobias Burnus <burnus@net-b.de>
PR fortran/41219
* intrinsics/getlog.c: Define _POSIX for MINGW32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151417 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r-- | libgfortran/intrinsics/getlog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/intrinsics/getlog.c b/libgfortran/intrinsics/getlog.c index 0456c5796a2..e75aa1cb7d2 100644 --- a/libgfortran/intrinsics/getlog.c +++ b/libgfortran/intrinsics/getlog.c @@ -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 |