X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsavewd.c;h=88c5feff8a8d2caabc4f30b38ee4a4f8285e9861;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=f19e98e3546be812ffb858b67fb504ff06d684c9;hpb=5bf4ad0bfa91baa20e4f39f47bfb8b4dd00df720;p=gnulib.git diff --git a/lib/savewd.c b/lib/savewd.c index f19e98e35..88c5feff8 100644 --- a/lib/savewd.c +++ b/lib/savewd.c @@ -1,6 +1,6 @@ /* Save and restore the working directory, possibly using a child process. - Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,8 @@ #include +#define SAVEWD_INLINE _GL_EXTERN_INLINE + #include "savewd.h" #include @@ -254,7 +256,7 @@ savewd_finish (struct savewd *wd) This is why savewd_chdir is broken out into another function; savewd_chdir's callers _can_ inspect the file system to decide whether to call savewd_chdir. */ -static inline bool +static bool savewd_delegating (struct savewd const *wd) { return wd->state == FORKING_STATE && 0 < wd->val.child;