From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3b9b577c93cb30f9,start X-Google-Attributes: gidfee84,public From: "Rohn Wood" Subject: sysmisc.h syntax error? Date: 1996/10/11 Message-ID: <01bbb7be$b7075180$1b0e8396@ufo.umt.edu>#1/1 X-Deja-AN: 188879946 organization: Computing & Information Serv. newsgroups: comp.unix.osf.osf1 Is there a c-programmer out there who can spot the syntax error in this code snippet from Digital UNIX 4.0's /usr/include/sys/sysmisc.h file? When attemping to compile just a simple c++ program, the compile dies. Similarly, attempts to compile libg++ die on this same file in the same line-range (100-106). I have included below, the output from the compile of the simple program, the code of th esimple program, and the offending range of lines in sysmisc.h Any insights would be appreciated. I am not (obviously) a C programmer. ------------------------- compile stdout --------------------------------------------------------- # g++ t.cc In file included from /usr/include/sys/timers.h:46, from /usr/public/lib/gcc-lib/alpha-dec-osf/2.7.2/include/time.h:167, from t.cc:1: /usr/include/sys/sysmisc.h:100: syntax error before `*' ---------------------------------------------------------------------------- ------------------- The code which produced this: ------------------------------------ t.cc code----------------------------------------------------- #include main() { } ------------------------------ sysmisc.h ----------------------------------------------------------- The offending lines of code in sysmisc.h are: (line 100...) #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199506L) /* * These fields appear only when compiling * for threaded applications. See SIGEV_THREAD * above. */ void (*_sigev_notify_function) __((sigval_t)); pthread_attr_t *_sigev_notify_attribute; /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINE WITH SYNTAX ERROR */ #endif /* _POSIX_C_SOURCE >= 199506L */ begin 600 out.txt M(R!G*RL@="YC8PI);B!F:6QE(&EN8VQU9&5D(&9R;VT@+W5S