diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-12-01 19:52:00 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-12-02 13:26:26 -0800 |
commit | eaf10f69de969652d03742809b9c970158b90719 (patch) | |
tree | bb382e74018d2352a0ee05912d53c34b28ad6113 /src/helper/Makefile.am | |
parent | 34654359a918edae10ca7dd7ebc0a487fdf609a4 (diff) |
remove BUILD_IOUTIL symbol
Add ioutil_stubs.c to provide an empty ioutil_init() routine.
Add ioutil.h to prevent applications from needing to declare it.
Allows unconditionally calling that function during startup, and the
resulting libocdhelper library API is now more stable.
Prints a DEBUG message when the stub implementation is included.
Diffstat (limited to 'src/helper/Makefile.am')
-rw-r--r-- | src/helper/Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper/Makefile.am b/src/helper/Makefile.am index 22b3c330..01e805eb 100644 --- a/src/helper/Makefile.am +++ b/src/helper/Makefile.am @@ -27,6 +27,8 @@ libhelper_la_SOURCES = \ if IOUTIL libhelper_la_SOURCES += ioutil.c +else +libhelper_la_SOURCES += ioutil_stubs.c endif libhelper_la_CFLAGS = @@ -38,6 +40,7 @@ endif noinst_HEADERS = \ binarybuffer.h \ configuration.h \ + ioutil.h \ types.h \ log.h \ command.h \ |