From 2c57b3689b5e89c15d824d6bc5016195d8ed2a5b Mon Sep 17 00:00:00 2001 From: Nishi Date: Mon, 16 Sep 2024 13:15:59 +0000 Subject: [PATCH] fix git-svn-id: file:///raid/svn-personal/tewi/trunk@34 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/main.c | 5 +++++ Server/strptime.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Server/main.c b/Server/main.c index 5e5f663..a51e94d 100644 --- a/Server/main.c +++ b/Server/main.c @@ -39,6 +39,11 @@ int main(int argc, char** argv) { return 1; } confpath = argv[i]; + } else if(strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-V") == 0) { + printf("Tewi HTTPd Tewi/%s\n", tw_get_version()); + printf("Under public domain.\n"); + printf("Copyright (C) 2024 Nishi\n"); + return 0; } else { fprintf(stderr, "Unknown option: %s\n", argv[i]); return 1; diff --git a/Server/strptime.c b/Server/strptime.c index a703060..ce0f05d 100644 --- a/Server/strptime.c +++ b/Server/strptime.c @@ -35,6 +35,8 @@ //#include //__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $"); +#ifdef __MINGW32__ + #include #include #include @@ -832,3 +834,5 @@ find_string(const unsigned char *bp, int *tgt, const char * const *n1, /* Nothing matched */ return NULL; } + +#endif -- 2.43.0