diff options
| author | Jim Meyering <meyering@redhat.com> | 2010-05-01 11:29:39 +0200 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2010-05-31 11:02:21 +0200 |
| commit | 78c1111c004352ea296fc2bb4cb579c8ec1646db (patch) | |
| tree | 42c83f76cd2a03b2355ae072e614f6fe40cce9d7 /src/stat.c | |
| parent | tests: remove unnecessary single quotes in perl hash use: ->{'SYM'} (diff) | |
| download | coreutils-78c1111c004352ea296fc2bb4cb579c8ec1646db.tar.gz coreutils-78c1111c004352ea296fc2bb4cb579c8ec1646db.zip | |
stat: use gnulib's alignof module
* src/stat.c (alignof): Remove definition.
Instead, include "alignof.h", and sort the #include directives.
And get its definition from the gnulib module by that name:
* bootstrap.conf (gnulib_modules): Add alignof.
Diffstat (limited to 'src/stat.c')
| -rw-r--r-- | src/stat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stat.c b/src/stat.c index e6de541e2..39d30777e 100644 --- a/src/stat.c +++ b/src/stat.c @@ -57,18 +57,17 @@ #include "system.h" +#include "alignof.h" +#include "areadlink.h" #include "error.h" -#include "filemode.h" #include "file-type.h" +#include "filemode.h" #include "fs.h" #include "getopt.h" #include "quote.h" #include "quotearg.h" #include "stat-time.h" #include "strftime.h" -#include "areadlink.h" - -#define alignof(type) offsetof (struct { char c; type x; }, x) #if USE_STATVFS # define STRUCT_STATVFS struct statvfs |
