about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/iofdopen.c2
-rw-r--r--libio/iofflush.c2
-rw-r--r--libio/iofgetpos.c2
-rw-r--r--libio/iofgets.c2
-rw-r--r--libio/iofopen.c2
-rw-r--r--libio/iofputs.c2
-rw-r--r--libio/iofread.c3
-rw-r--r--libio/iofsetpos.c2
-rw-r--r--libio/ioftell.c2
-rw-r--r--libio/iofwrite.c2
-rw-r--r--libio/iogetdelim.c2
-rw-r--r--libio/iogets.c2
-rw-r--r--libio/iopopen.c2
-rw-r--r--libio/ioputs.c3
-rw-r--r--libio/iosetbuffer.c2
-rw-r--r--libio/iosetvbuf.c2
-rw-r--r--libio/ioungetc.c2
-rw-r--r--libio/iovsprintf.c2
-rw-r--r--libio/iovsscanf.c3
19 files changed, 41 insertions, 0 deletions
diff --git a/libio/iofdopen.c b/libio/iofdopen.c
index 67c629c583..4ec9a1cbce 100644
--- a/libio/iofdopen.c
+++ b/libio/iofdopen.c
@@ -128,4 +128,6 @@ _IO_fdopen (fd, mode)
   return (_IO_FILE *) &new_f->fp;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fdopen, fdopen)
+#endif
diff --git a/libio/iofflush.c b/libio/iofflush.c
index 96cb49b2dc..082988875f 100644
--- a/libio/iofflush.c
+++ b/libio/iofflush.c
@@ -43,4 +43,6 @@ _IO_fflush (fp)
     }
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fflush, fflush)
+#endif
diff --git a/libio/iofgetpos.c b/libio/iofgetpos.c
index 53a359ee76..9682af96ae 100644
--- a/libio/iofgetpos.c
+++ b/libio/iofgetpos.c
@@ -49,4 +49,6 @@ _IO_fgetpos (fp, posp)
   return 0;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fgetpos, fgetpos)
+#endif
diff --git a/libio/iofgets.c b/libio/iofgets.c
index 7a1044f801..c8ec289bd1 100644
--- a/libio/iofgets.c
+++ b/libio/iofgets.c
@@ -50,4 +50,6 @@ _IO_fgets (buf, n, fp)
   return result;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fgets, fgets)
+#endif
diff --git a/libio/iofopen.c b/libio/iofopen.c
index cea2415218..acf034cd22 100644
--- a/libio/iofopen.c
+++ b/libio/iofopen.c
@@ -58,4 +58,6 @@ _IO_fopen (filename, mode)
   return NULL;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fopen, fopen)
+#endif
diff --git a/libio/iofputs.c b/libio/iofputs.c
index 9ce3caa194..7c76ac6336 100644
--- a/libio/iofputs.c
+++ b/libio/iofputs.c
@@ -43,4 +43,6 @@ _IO_fputs (str, fp)
   return result;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fputs, fputs)
+#endif
diff --git a/libio/iofread.c b/libio/iofread.c
index 5fed0d8d7d..ad7e4845a8 100644
--- a/libio/iofread.c
+++ b/libio/iofread.c
@@ -42,4 +42,7 @@ _IO_fread (buf, size, count, fp)
   _IO_cleanup_region_end (1);
   return bytes_requested == bytes_read ? count : bytes_read / size;
 }
+
+#ifdef weak_alias
 weak_alias (_IO_fread, fread)
+#endif
diff --git a/libio/iofsetpos.c b/libio/iofsetpos.c
index 2d29fa7cbb..2f71d79708 100644
--- a/libio/iofsetpos.c
+++ b/libio/iofsetpos.c
@@ -50,4 +50,6 @@ _IO_fsetpos (fp, posp)
   return result;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fsetpos, fsetpos)
+#endif
diff --git a/libio/ioftell.c b/libio/ioftell.c
index 7fe18f890b..37156bb22c 100644
--- a/libio/ioftell.c
+++ b/libio/ioftell.c
@@ -47,4 +47,6 @@ _IO_ftell (fp)
   return _IO_pos_as_off (pos);
 }
 
+#ifdef weak_alias
 weak_alias (_IO_ftell, ftell)
+#endif
diff --git a/libio/iofwrite.c b/libio/iofwrite.c
index 542fa77f2e..3f098e078e 100644
--- a/libio/iofwrite.c
+++ b/libio/iofwrite.c
@@ -48,4 +48,6 @@ _IO_fwrite (buf, size, count, fp)
     return written/size;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_fwrite, fwrite)
+#endif
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b1662e4c90..8e87511c12 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -118,5 +118,7 @@ unlock_return:
   return result;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_getdelim, __getdelim)
 weak_alias (_IO_getdelim, getdelim)
+#endif
diff --git a/libio/iogets.c b/libio/iogets.c
index 0e87504107..ed078763c4 100644
--- a/libio/iogets.c
+++ b/libio/iogets.c
@@ -61,7 +61,9 @@ unlock_return:
   return retval;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_gets, gets)
+#endif
 
 #ifdef _LIBC
 link_warning (gets, "the `gets' function is dangerous and should not be used.")
diff --git a/libio/iopopen.c b/libio/iopopen.c
index 5703c99d47..0768321281 100644
--- a/libio/iopopen.c
+++ b/libio/iopopen.c
@@ -177,7 +177,9 @@ DEFUN(_IO_popen, (command, mode),
   return NULL;
 }
 
+#ifdef strong_alias
 strong_alias (_IO_popen, popen);
+#endif
 
 int
 DEFUN(_IO_proc_close, (fp),
diff --git a/libio/ioputs.c b/libio/ioputs.c
index c35ceb8015..fcc296a45c 100644
--- a/libio/ioputs.c
+++ b/libio/ioputs.c
@@ -41,4 +41,7 @@ _IO_puts (str)
   _IO_cleanup_region_end (1);
   return result;
 }
+
+#ifdef weak_alias
 weak_alias (_IO_puts, puts)
+#endif
diff --git a/libio/iosetbuffer.c b/libio/iosetbuffer.c
index 09751afdab..8921887985 100644
--- a/libio/iosetbuffer.c
+++ b/libio/iosetbuffer.c
@@ -40,4 +40,6 @@ _IO_setbuffer (fp, buf, size)
   _IO_cleanup_region_end (1);
 }
 
+#ifdef weak_alias
 weak_alias (_IO_setbuffer, setbuffer)
+#endif
diff --git a/libio/iosetvbuf.c b/libio/iosetvbuf.c
index 0bd6025128..3e105f3b79 100644
--- a/libio/iosetvbuf.c
+++ b/libio/iosetvbuf.c
@@ -94,4 +94,6 @@ unlock_return:
   return result;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_setvbuf, setvbuf)
+#endif
diff --git a/libio/ioungetc.c b/libio/ioungetc.c
index d36b07a394..866cba642d 100644
--- a/libio/ioungetc.c
+++ b/libio/ioungetc.c
@@ -40,4 +40,6 @@ _IO_ungetc (c, fp)
   return result;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_ungetc, ungetc)
+#endif
diff --git a/libio/iovsprintf.c b/libio/iovsprintf.c
index 099863c2f1..25bae66d93 100644
--- a/libio/iovsprintf.c
+++ b/libio/iovsprintf.c
@@ -51,4 +51,6 @@ _IO_vsprintf (string, format, args)
   return ret;
 }
 
+#ifdef weak_alias
 weak_alias (_IO_vsprintf, vsprintf)
+#endif
diff --git a/libio/iovsscanf.c b/libio/iovsscanf.c
index c0c2ef0bf1..e9376fe03d 100644
--- a/libio/iovsscanf.c
+++ b/libio/iovsscanf.c
@@ -44,5 +44,8 @@ DEFUN(_IO_vsscanf, (string, format, args),
   _IO_cleanup_region_end (1);
   return ret;
 }
+
+#ifdef weak_alias
 weak_alias (_IO_vsscanf, __vsscanf)
 weak_alias (_IO_vsscanf, vsscanf)
+#endif