From a5e49274c570061dcf3d8153138392f5e4a6b8f7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 7 Sep 2011 11:48:23 +0200 Subject: [PATCH] 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) --- ChangeLog | 5 +++++ lib/openat.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.11.0