aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/u.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h
index ccadff00..b9f07c40 100644
--- a/include/u.h
+++ b/include/u.h
@@ -137,6 +137,9 @@ typedef short s16int;
# if __GNUC__ >= 3
# undef AUTOLIB
# define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak));
+# else
+# undef AUTOLIB
+# define AUTOLIB(x) static int __p9l_autolib_ ## x __attribute__ ((unused));
# endif
#endif