-#if USE_REENTRANT
- printf(" function ACS_Map return C_ACS_Map;\n");
- printf(" pragma Import (C, ACS_Map, \"_nc_acs_map\");\n");
+#if USE_REENTRANT || BROKEN_LINKER
+ printf(" type C_ACS_Ptr is access C_ACS_Map;\n");
+ printf(" function ACS_Map return C_ACS_Ptr;\n");
+ printf(" pragma Import (C, ACS_Map, \""
+ NCURSES_WRAP_PREFIX
+ "acs_map\");\n");