1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix build on -current (don't try and guess about the definition of

__size_t), and fix a format string with two many arguments while I'm here.
This commit is contained in:
Kris Kennaway 2002-10-20 20:51:22 +00:00
parent 798a3eec9b
commit 078576068c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68433
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- contrib/mod_ratio.c.orig Sun Oct 20 13:49:21 2002
+++ contrib/mod_ratio.c Sun Oct 20 13:50:11 2002
@@ -606,7 +606,7 @@
add_response(R_214,
"Bytes: %s Down: %imb Up: %imb CR: %i Mbytes",
stats.btext, (stats.bretr / 1024), (stats.bstor / 1024),
- (stats.bytes / 1024), stats.bytes);
+ (stats.bytes / 1024));
return HANDLED(cmd);
}

View File

@ -0,0 +1,11 @@
--- include/glibc-glob.h.orig Sun Oct 20 13:43:44 2002
+++ include/glibc-glob.h Sun Oct 20 13:48:38 2002
@@ -50,7 +50,7 @@
#endif
/* We need `size_t' for the following definitions. */
-#ifndef __size_t
+#if !defined(__size_t) && !defined(__FreeBSD__)
# if defined __GNUC__ && __GNUC__ >= 2
typedef __SIZE_TYPE__ __size_t;
# ifdef _XOPEN_SOURCE

View File

@ -0,0 +1,11 @@
--- contrib/mod_ratio.c.orig Sun Oct 20 13:49:21 2002
+++ contrib/mod_ratio.c Sun Oct 20 13:50:11 2002
@@ -606,7 +606,7 @@
add_response(R_214,
"Bytes: %s Down: %imb Up: %imb CR: %i Mbytes",
stats.btext, (stats.bretr / 1024), (stats.bstor / 1024),
- (stats.bytes / 1024), stats.bytes);
+ (stats.bytes / 1024));
return HANDLED(cmd);
}

View File

@ -0,0 +1,11 @@
--- include/glibc-glob.h.orig Sun Oct 20 13:43:44 2002
+++ include/glibc-glob.h Sun Oct 20 13:48:38 2002
@@ -50,7 +50,7 @@
#endif
/* We need `size_t' for the following definitions. */
-#ifndef __size_t
+#if !defined(__size_t) && !defined(__FreeBSD__)
# if defined __GNUC__ && __GNUC__ >= 2
typedef __SIZE_TYPE__ __size_t;
# ifdef _XOPEN_SOURCE