You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dg...@hyperreal.org on 1998/01/21 22:54:32 UTC
cvs commit: apachen/src/ap ap_signal.c ap_slack.c
dgaudet 98/01/21 13:54:32
Modified: src CHANGES
src/os/unix os.c
src/ap ap_signal.c ap_slack.c
Log:
Some linkers complain when there are no functions in a file.
PR: 1614
Revision Changes Path
1.574 +3 -0 apachen/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apachen/src/CHANGES,v
retrieving revision 1.573
retrieving revision 1.574
diff -u -r1.573 -r1.574
--- CHANGES 1998/01/21 19:06:11 1.573
+++ CHANGES 1998/01/21 21:54:26 1.574
@@ -1,5 +1,8 @@
Changes with Apache 1.3b4
+ *) Some linkers complain when .o files contain no functions.
+ [Dean Gaudet] PR#1614
+
*) Some const declarations in mod_imap.c that were added for debugging
purposes caused some compilers heartburn without adding any
significant value, so they've been removed. [Ken Coar]
1.4 +6 -0 apachen/src/os/unix/os.c
Index: os.c
===================================================================
RCS file: /export/home/cvs/apachen/src/os/unix/os.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- os.c 1997/09/12 07:28:50 1.3
+++ os.c 1998/01/21 21:54:30 1.4
@@ -4,3 +4,9 @@
*/
#include "os.h"
+
+
+/* some linkers complain unless there's at least one function in each
+ * .o file
+ */
+void os_is_not_here(void) {}
1.3 +3 -0 apachen/src/ap/ap_signal.c
Index: ap_signal.c
===================================================================
RCS file: /export/home/cvs/apachen/src/ap/ap_signal.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ap_signal.c 1998/01/07 16:45:55 1.2
+++ ap_signal.c 1998/01/21 21:54:30 1.3
@@ -73,4 +73,7 @@
return SIG_ERR;
return oact.sa_handler;
}
+#else
+/* need some function in this file, otherwise the linker on NeXT bitches */
+void ap_signal_is_not_here(void) {}
#endif
1.3 +3 -0 apachen/src/ap/ap_slack.c
Index: ap_slack.c
===================================================================
RCS file: /export/home/cvs/apachen/src/ap/ap_slack.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ap_slack.c 1998/01/07 16:45:56 1.2
+++ ap_slack.c 1998/01/21 21:54:31 1.3
@@ -106,4 +106,7 @@
return new_fd;
#endif
}
+#else
+/* need at least one function in the file for some linkers */
+void ap_slack_is_not_here(void) {}
#endif /* NO_SLACK */