waf: fix broken wscript

This commit is contained in:
Thomas Porzelt 2009-09-10 23:53:14 +02:00
parent dd6f9d16ad
commit 20738ad079
2 changed files with 1 additions and 3 deletions

View File

@ -8,8 +8,6 @@
* MIT, see COPYING file * MIT, see COPYING file
*/ */
#define VERSION "0.1"
#include "weighttp.h" #include "weighttp.h"
extern int optind, optopt; /* getopt */ extern int optind, optopt; /* getopt */

View File

@ -62,7 +62,7 @@ def build(bld):
bld.new_task_gen( bld.new_task_gen(
features = 'cc cprogram', features = 'cc cprogram',
source = ['src/client.c', 'src/weighttp.c', 'src/worker.c'], source = ['src/client.c', 'src/weighttp.c', 'src/worker.c'],
defines = ['HAVE_CONFIG_H=1', 'VERSION=' % VERSION], defines = ['HAVE_CONFIG_H=1', 'VERSION="' + VERSION + '"'],
includes = '.', includes = '.',
uselib = 'ev pthread', uselib = 'ev pthread',
target = 'weighttp' target = 'weighttp'