Date: Thu, 3 Aug 2006 15:47:34 -0400 From: Mikhail Teterin <mi+mx@aldan.algebra.com> To: standards@freebsd.org Cc: questions@freebsd.org Subject: conundrum: _C99_SOURCE vs. sigset Message-ID: <200608031547.34386.mi%2Bmx@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
Hello! I'm trying to compile a program, which uses threads and has its own daemon global variable. The variable's declaration results in an error: recsnap.C:50: error: `RTRString daemon' redeclared as different kind of symbol /usr/include/stdlib.h:252: error: previous declaration of `int daemon(int, int)' The daemon()'s declaration in stdlib.h can be turned off by declaring either _C99_SOURCE or _ANSI_SOURCE. Unfortunately, both of these defines also turn off the declaration of sigset_t and fd_set: /usr/include/pthread.h:233: error: expected `,' or `...' before '*' token .../include/rtr/selectni.h:129: error: `fd_set' does not name a type Can this be solved -- without modifying the vendor's code? Thanks! -mi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608031547.34386.mi%2Bmx>