* src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through...
[fw/sdcc] / as / mcs51 / lklibr.c
index 5e57c813e320361115c4dbf6e5de29a3617511f3..cadcbfa1b7e3d887297ad419d0436593d0a1bfcd 100644 (file)
  *
  */
 
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/types.h>
+#include <sys/malloc.h>
+#else
+#include <malloc.h>
+#endif
 #include <stdio.h>
 #include <string.h>
-#include <alloc.h>
 #include "aslink.h"
 
 /*)Module      lklibr.c
@@ -202,7 +207,6 @@ char *libfil;
                lbnh->libfil = (char *) new (strlen(libfil) + 1);
                strcpy(lbnh->libfil,libfil);
                lbnh->libspc = str;
-               fprintf(stderr,"library file %s\n",str);
        } else {
                free(str);
        }