From: Bruno Haible Date: Wed, 7 Sep 2011 09:48:23 +0000 (+0200) Subject: openat: Work around compilation error with OSF/1 5.1 DTK cc. X-Git-Tag: stable/20110908~2 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=a5e49274c570061dcf3d8153138392f5e4a6b8f7;p=gnulib.git openat: Work around compilation error with OSF/1 5.1 DTK cc. * lib/openat.h: Use different syntax for include of . (cherry picked from commit 76074e9af140661560dc1ce16d0a80c2e768a740) --- diff --git a/ChangeLog b/ChangeLog index 56994bca9..59d2398e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-07 Bruno Haible + + openat: Work around compilation error with OSF/1 5.1 DTK cc. + * lib/openat.h: Use different syntax for include of . + 2011-09-05 Paul Eggert openat: port to AIX 7.1 with large files diff --git a/lib/openat.h b/lib/openat.h index b26571f82..fb4f4d8bd 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -19,7 +19,9 @@ #ifndef _GL_HEADER_OPENAT #define _GL_HEADER_OPENAT -#include +/* Write "fcntl.h" here, not , otherwise OSF/1 5.1 DTK cc miscompiles + openat.c because that file has a preliminary #include . */ +#include "fcntl.h" #include #include