diff options
| author | Dave Heller <hellerda@linux.vnet.ibm.com> | 2017-12-05 17:09:25 -0500 |
|---|---|---|
| committer | Dave Heller <hellerda@linux.vnet.ibm.com> | 2017-12-05 17:09:25 -0500 |
| commit | 30cfe38c5c1601db6870eb84f1986c9a63ff04d6 (patch) | |
| tree | 0a09c3ddba265c8a6e98eee3216dd5a51460d118 | |
| parent | 53bf712031e2951cdace89ac9496649abb211c27 (diff) | |
| download | sb-signing-utils-30cfe38c5c1601db6870eb84f1986c9a63ff04d6.tar.gz sb-signing-utils-30cfe38c5c1601db6870eb84f1986c9a63ff04d6.zip | |
Adjust previous patch to reorganize includes
I was unclear on this previously, but apparently the right way is to include
config.h in all files (ref: https://sourceware.org/autobook/autobook/
autobook_66.html#Installing-Header-Files) as the first entry, before any
other header file (ref: https://www.gnu.org/software/autoconf/manual/
autoconf-2.66/html_node/Configuration-Headers.html).
Signed-off-by: Dave Heller <hellerda@linux.vnet.ibm.com>
| -rw-r--r-- | create-container.c | 2 | ||||
| -rw-r--r-- | hashkeys.c | 2 | ||||
| -rw-r--r-- | print-container.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/create-container.c b/create-container.c index ad60412..0aa7d20 100644 --- a/create-container.c +++ b/create-container.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#include <config.h> + #include <errno.h> #include <fcntl.h> #include <getopt.h> @@ -14,6 +14,8 @@ * limitations under the License. */ +#include <config.h> + #include <errno.h> #include <fcntl.h> #include <getopt.h> diff --git a/print-container.c b/print-container.c index 8a2fe13..0a3742f 100644 --- a/print-container.c +++ b/print-container.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#include <config.h> + #include <alloca.h> #include <errno.h> #include <fcntl.h> |

