mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-21 21:39: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>
|
2005-05-04 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* ksutil.h, ksutil.c: #ifdef so we can build without libcurl or
|
* ksutil.h, ksutil.c: #ifdef so we can build without libcurl or
|
||||||
|
@ -36,6 +36,13 @@
|
|||||||
#include "keyserver.h"
|
#include "keyserver.h"
|
||||||
#include "ksutil.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
|
static void
|
||||||
catch_alarm(int foo)
|
catch_alarm(int foo)
|
||||||
{
|
{
|
||||||
@ -45,19 +52,12 @@ catch_alarm(int foo)
|
|||||||
unsigned int
|
unsigned int
|
||||||
set_timeout(unsigned int seconds)
|
set_timeout(unsigned int seconds)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_DOSISH_SYSTEM
|
|
||||||
return 0;
|
|
||||||
#else
|
|
||||||
return alarm(seconds);
|
return alarm(seconds);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
register_timeout(void)
|
register_timeout(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_DOSISH_SYSTEM
|
|
||||||
return 0;
|
|
||||||
#else
|
|
||||||
#if defined(HAVE_SIGACTION) && defined(HAVE_STRUCT_SIGACTION)
|
#if defined(HAVE_SIGACTION) && defined(HAVE_STRUCT_SIGACTION)
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
|
|
||||||
@ -71,9 +71,10 @@ register_timeout(void)
|
|||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* !HAVE_DOSISH_SYSTEM */
|
||||||
|
|
||||||
struct ks_options *
|
struct ks_options *
|
||||||
init_ks_options(void)
|
init_ks_options(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user