summaryrefslogtreecommitdiff
path: root/cmd-line-utils/libedit/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/libedit/compat.h')
-rw-r--r--cmd-line-utils/libedit/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-line-utils/libedit/compat.h b/cmd-line-utils/libedit/compat.h
index f432ac45dfc..3693a2db809 100644
--- a/cmd-line-utils/libedit/compat.h
+++ b/cmd-line-utils/libedit/compat.h
@@ -36,4 +36,8 @@
#endif
#endif
+#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
+#define __attribute__(A)
+#endif
+
#endif