mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Unbreak the build under modern environments and cleanup Makefile while here.
This commit is contained in:
parent
9d5d9d316a
commit
f24c8dd211
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366062
@ -10,16 +10,9 @@ MASTER_SITES= http://www.kegel.com/dkftpbench/
|
||||
MAINTAINER= novel@FreeBSD.org
|
||||
COMMENT= FTP benchmark program
|
||||
|
||||
PLIST_FILES= bin/dkftpbench
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
USE_AUTOTOOLS= automake14 autoconf
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
PLIST_FILES= bin/dkftpbench
|
||||
|
||||
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1000000
|
||||
BROKEN= does not build on FreeBSD 10 or better
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
26
benchmarks/dkftpbench/files/patch-Platoon.h
Normal file
26
benchmarks/dkftpbench/files/patch-Platoon.h
Normal file
@ -0,0 +1,26 @@
|
||||
--- Platoon.h.orig 2002-02-13 05:06:01 UTC
|
||||
+++ Platoon.h
|
||||
@@ -1,13 +1,11 @@
|
||||
#ifndef Platoon_H
|
||||
#define Platoon_H
|
||||
#include "robouser.h"
|
||||
-#include <list.h>
|
||||
+#include <list>
|
||||
|
||||
/* FIXME: 'reasonable' upper bound on number of users CPU can handle */
|
||||
#define Platoon_MAXUSERS (1 << 16)
|
||||
|
||||
-enum robouser_t::state_t;
|
||||
-
|
||||
/**----------------------------------------------------------------------
|
||||
Platoon of robousers.
|
||||
----------------------------------------------------------------------*/
|
||||
@@ -150,7 +148,7 @@ private:
|
||||
robouser_t *m_users[Platoon_MAXUSERS];
|
||||
|
||||
/** List of dead robousers waiting to be reaped */
|
||||
- list<robouser_t *> m_deadlist;
|
||||
+ std::list<robouser_t *> m_deadlist;
|
||||
|
||||
/** Health: count of bytes fetched so far from all files */
|
||||
size_t m_bytesFetched;
|
Loading…
Reference in New Issue
Block a user