aboutsummaryrefslogtreecommitdiff
path: root/sim/common/defs.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-01 18:05:49 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-29 11:56:43 -0400
commit5c9e84c2d8208444772cae8130a23aa27407f32c (patch)
tree549d735f6de862152ae964f1f1548f78392a5053 /sim/common/defs.h
parent63e47e10725f93a4c07ced83050b917bc9e6b205 (diff)
downloadgdb-5c9e84c2d8208444772cae8130a23aa27407f32c.zip
gdb-5c9e84c2d8208444772cae8130a23aa27407f32c.tar.gz
gdb-5c9e84c2d8208444772cae8130a23aa27407f32c.tar.bz2
sim: leverage gnulib
We use getline, so leverage gnulib to provide fallback implementation.
Diffstat (limited to 'sim/common/defs.h')
-rw-r--r--sim/common/defs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sim/common/defs.h b/sim/common/defs.h
index 3a0737c..957e36d 100644
--- a/sim/common/defs.h
+++ b/sim/common/defs.h
@@ -22,6 +22,18 @@
#ifdef HAVE_CONFIG_H
+/* Include gnulib's various configure tests. */
+#include "gnulib/config.h"
+
+/* Reset macros that our config.h will provide. */
+#undef PACKAGE
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_URL
+#undef PACKAGE_VERSION
+
/* Include sim's various configure tests. */
#include "config.h"