kopia lustrzana https://github.com/Hamlib/Hamlib
allow build on solaris
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1420 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.4
rodzic
c71b8eed6a
commit
ee79d87399
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Hamlib Interface - event handling
|
* Hamlib Interface - event handling
|
||||||
* Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton
|
* Copyright (c) 2000-2003 by Stephane Fillod and Frank Singleton
|
||||||
*
|
*
|
||||||
* $Id: event.c,v 1.14 2002-09-29 20:18:34 fillods Exp $
|
* $Id: event.c,v 1.15 2003-04-02 07:24:28 fillods Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -88,7 +88,7 @@ int add_trn_rig(RIG *rig)
|
||||||
rig_debug(RIG_DEBUG_ERR,"rig_open fcntl SETOWN failed: %s\n",
|
rig_debug(RIG_DEBUG_ERR,"rig_open fcntl SETOWN failed: %s\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
|
||||||
#ifdef HAVE_SIGINFO_T
|
#if defined(HAVE_SIGINFO_T) && defined(O_ASYNC)
|
||||||
#ifdef F_SETSIG
|
#ifdef F_SETSIG
|
||||||
status = fcntl(rig->state.rigport.fd, F_SETSIG, SIGIO);
|
status = fcntl(rig->state.rigport.fd, F_SETSIG, SIGIO);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
|
@ -100,6 +100,8 @@ int add_trn_rig(RIG *rig)
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
rig_debug(RIG_DEBUG_ERR,"rig_open fcntl SETASYNC failed: %s\n",
|
rig_debug(RIG_DEBUG_ERR,"rig_open fcntl SETASYNC failed: %s\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
#else
|
||||||
|
return -RIG_ENIMPL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
|
|
Ładowanie…
Reference in New Issue