This is the mail archive of the
mailing list for the Cygwin project.
RE: setpriority() and PRIO_PROCESS under Cygwin
- From: "Hannu E K Nevalainen" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 12 Oct 2003 15:21:41 +0200
- Subject: RE: setpriority() and PRIO_PROCESS under Cygwin
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com]On Behalf
> Of Terrence Brannon
> Sent: Sunday, October 12, 2003 2:07 AM
> To: firstname.lastname@example.org
> Subject: setpriority() and PRIO_PROCESS under Cygwin
> I am trying to compile a free high-quality chess database, known as Scid:
> Here is the error I get
> ~/wares/scid-3.5a $ cat make.err
> In file included from src/game.h:24,
> from src/tkscid.h:20,
> from src/tkscid.cpp:16:
> src/textbuf.h: In member function `void
> src/textbuf.h:70: warning: array subscript has type `char'
> src/tkscid.cpp: In function `int sc_info_priority(void*, Tcl_Interp*, int,
> const char**)':
> src/tkscid.cpp:8363: error: `PRIO_PROCESS' undeclared (first use this
> src/tkscid.cpp:8363: error: (Each undeclared identifier is reported only
> for each function it appears in.)
> src/tkscid.cpp:8363: error: `setpriority' undeclared (first use this
> src/tkscid.cpp:8368: error: `getpriority' undeclared (first use this
> make: *** [src/tkscid.o] Error 1
> ~/wares/scid-3.5a $
> ==== end paste , text continue =====
> I saw some assorted messages on the Cygwin mail archives about this, but
> issueing a find on /usr/include did not help. Nor did getting a version
> of pthreads-win32 as there is no PRIO_PROCESS defined there.
> Can anyone suggest a solution for getting code making calls to
> setpriority() and using PRIO_PROCESS to compile under Cygwin?
>+> setpriority/getpriority are not implemented in Cygwin.
This means; use __CYGWIN__ or some such to create conditional (i.e.
exclusion of) compiling of those parts of the source.
/Hannu E K Nevalainen, B.Sc. EE - 59°16.37'N, 17°12.60'E
-- UTC+01, DST -> UTC+02 --
--END OF MESSAGE--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html