From 545b7c8bc2e1716773f38975a2a78b71cc72818f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 2 Aug 2012 14:17:33 -0700 Subject: [PATCH] stat-time, timespec, u64: support naive out-of-dir builds * lib/stat-time.c, lib/timespec.c, lib/u64.c: Use '#include "foo.h"', not '#include ', when including one's own interface. This works better when configuring with out-of-directory builds, since packages need not add an otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES. --- ChangeLog | 9 +++++++++ lib/stat-time.c | 2 +- lib/timespec.c | 2 +- lib/u64.c | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a00e44582..62bb873e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2012-08-02 Paul Eggert + + stat-time, timespec, u64: support naive out-of-dir builds + * lib/stat-time.c, lib/timespec.c, lib/u64.c: + Use '#include "foo.h"', not '#include ', when including + one's own interface. This works better when configuring with + out-of-directory builds, since packages need not add an + otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES. + 2012-08-01 Paul Eggert utimens: use extern-inline diff --git a/lib/stat-time.c b/lib/stat-time.c index 1a907ef25..81b83ddb4 100644 --- a/lib/stat-time.c +++ b/lib/stat-time.c @@ -1,3 +1,3 @@ #include #define _GL_STAT_TIME_INLINE _GL_EXTERN_INLINE -#include +#include "stat-time.h" diff --git a/lib/timespec.c b/lib/timespec.c index 16a776472..2b6098ed7 100644 --- a/lib/timespec.c +++ b/lib/timespec.c @@ -1,3 +1,3 @@ #include #define _GL_TIMESPEC_INLINE _GL_EXTERN_INLINE -#include +#include "timespec.h" diff --git a/lib/u64.c b/lib/u64.c index 30dcb45b6..04cf7a299 100644 --- a/lib/u64.c +++ b/lib/u64.c @@ -1,3 +1,3 @@ #include #define _GL_U64_INLINE _GL_EXTERN_INLINE -#include +#include "u64.h" -- 2.11.0