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:
parent
798a3eec9b
commit
078576068c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68433
11
ftp/proftpd-devel/files/patch-ai
Normal file
11
ftp/proftpd-devel/files/patch-ai
Normal 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);
|
||||
}
|
||||
|
11
ftp/proftpd-devel/files/patch-aj
Normal file
11
ftp/proftpd-devel/files/patch-aj
Normal 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
|
11
ftp/proftpd/files/patch-ai
Normal file
11
ftp/proftpd/files/patch-ai
Normal 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);
|
||||
}
|
||||
|
11
ftp/proftpd/files/patch-aj
Normal file
11
ftp/proftpd/files/patch-aj
Normal 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
|
Loading…
Reference in New Issue
Block a user