Skip to content

Commit

Permalink
Add header checks in configury.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkgutierrez committed Apr 30, 2018
1 parent c1f46e0 commit c79102e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ LT_INIT
AC_TYPE_PID_T
AC_TYPE_SIZE_T

################################################################################
# Header checks.
################################################################################
AC_CHECK_HEADERS([\
inttypes.h sys/types.h unistd.h stdint.h
])

################################################################################
# External package dependencies
################################################################################
Expand Down
1 change: 0 additions & 1 deletion src/sdsdkv-client.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "sdskv-client.h"
#include "ch-placement.h"

#include <iostream> // TODO(skg) Not really needed. Just for debug.
#include <vector>
#include <utility>

Expand Down
8 changes: 8 additions & 0 deletions src/sdsdkv-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@

#pragma once

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "sdsdkv-personality-factory.h"
#include "sdsdkv-mpi.h"
#include "sdsdkv-config.h"

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

#include <iostream>
#include <stdexcept>
Expand Down

0 comments on commit c79102e

Please sign in to comment.