diff --git a/ghc/runtime/main/SMRep.lc b/ghc/runtime/main/SMRep.lc
index 19c6d51427afa3a3fc253a7f79512afc59eff425..844d8750f5ddb72fdcaf133138ea23943cf898c7 100644
--- a/ghc/runtime/main/SMRep.lc
+++ b/ghc/runtime/main/SMRep.lc
@@ -18,6 +18,10 @@ These are the single, global static instances of each rep table type.
 #include "rtsdefs.h"
 #include "../storage/SMinternal.h"
 
+#ifdef aix_TARGET_OS /* AIX gives link errors with consts in this file (RO assembler section) */
+#define const /* */
+#endif
+
 EXTFUN(_PRIn_0);
 EXTFUN(_PRIn_1);
 EXTFUN(_PRIn_2);