mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-20 21:29:58 +01:00
* ksutil.c [HAVE_DOSISH_SYSTEM]: Fix warnings on mingw32. Noted by Joe
Vender.
This commit is contained in:
parent
db8adc2880
commit
a644a1d3d7
@ -1,3 +1,8 @@
|
||||
2005-06-01 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* ksutil.c [HAVE_DOSISH_SYSTEM]: Fix warnings on mingw32. Noted
|
||||
by Joe Vender.
|
||||
|
||||
2005-05-04 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* ksutil.h, ksutil.c: #ifdef so we can build without libcurl or
|
||||
|
@ -36,6 +36,13 @@
|
||||
#include "keyserver.h"
|
||||
#include "ksutil.h"
|
||||
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
|
||||
unsigned int set_timeout(unsigned int seconds) {return 0;}
|
||||
int register_timeout(void) {return 0;}
|
||||
|
||||
#else
|
||||
|
||||
static void
|
||||
catch_alarm(int foo)
|
||||
{
|
||||
@ -45,19 +52,12 @@ catch_alarm(int foo)
|
||||
unsigned int
|
||||
set_timeout(unsigned int seconds)
|
||||
{
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
return 0;
|
||||
#else
|
||||
return alarm(seconds);
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
register_timeout(void)
|
||||
{
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
return 0;
|
||||
#else
|
||||
#if defined(HAVE_SIGACTION) && defined(HAVE_STRUCT_SIGACTION)
|
||||
struct sigaction act;
|
||||
|
||||
@ -71,9 +71,10 @@ register_timeout(void)
|
||||
else
|
||||
return 0;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* !HAVE_DOSISH_SYSTEM */
|
||||
|
||||
struct ks_options *
|
||||
init_ks_options(void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user