about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/shlib-compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/shlib-compat.h b/include/shlib-compat.h
index 7704f5289f..7f66cbead5 100644
--- a/include/shlib-compat.h
+++ b/include/shlib-compat.h
@@ -20,9 +20,11 @@
 #ifndef _SHLIB_COMPAT_H
 #define _SHLIB_COMPAT_H	1
 
+#if defined HAVE_ELF && defined DO_VERSIONING
 /* Since there is just one set of .d files generated, we need to
    include this unconditionally to have the dependency noticed properly.  */
 #include <abi-versions.h>	/* header generated by abi-versions.awk */
+#endif
 
 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING