aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@redembedded.com>2018-03-24 18:03:32 +0100
committerMichał Łyszczek <michal.lyszczek@redembedded.com>2018-03-24 18:03:32 +0100
commit50e3cb3c6db554692c7c1e1eff85b09bb46a9754 (patch)
treea8180ea04da84cee5210909b5a1bad9bbdb8cec4
parent8e73181627d4b840daec32a1c7912727f1947a4a (diff)
downloadlibrb-50e3cb3c6db554692c7c1e1eff85b09bb46a9754.tar.gz
librb-50e3cb3c6db554692c7c1e1eff85b09bb46a9754.tar.bz2
librb-50e3cb3c6db554692c7c1e1eff85b09bb46a9754.zip
add: #if for config.h
-rw-r--r--rb/rb.c2
-rw-r--r--rb/tests.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/rb/rb.c b/rb/rb.c
index eab4643..34f9b9f 100644
--- a/rb/rb.c
+++ b/rb/rb.c
@@ -14,7 +14,9 @@
========================================================================== */
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
#include <errno.h>
#include <stddef.h>
diff --git a/rb/tests.c b/rb/tests.c
index 3fc950b..f2da020 100644
--- a/rb/tests.c
+++ b/rb/tests.c
@@ -3,7 +3,10 @@
Author: Michał Łyszczek <michal.lyszczek@bofc.pl>
========================================================================== */
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
+
#include "rb.h"
#include <fcntl.h>