﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
418	Compile error on Solaris 11	rainer	rainer	"The 
{{{
#define _XOPEN_SOURCE 600 
}}}
in src/slib.c causes the following error (reported by Rolf)
{{{
/usr/include/sys/feature_tests.h:358:2: error: #error ""Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications       require the use of c99""
 #error ""Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications \

x_slib.c: In function 'sl_strncasecmp':
x_slib.c:1099:5: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]
     return (strncasecmp(a, b, n));

x_slib.c: In function 'sl_check_mincore':
x_slib.c:2174:8: warning: implicit declaration of function 'mincore' [-Wimplicit-function-declaration]
        mincore(f_map, fbuf.st_size, vec);
}}}

We need to downgrade to _XOPEN_SOURCE 500 like this:

{{{
#if defined(__sun) || defined(__sun__) || defined(sun)
#define _XOPEN_SOURCE 500
#else
#define _XOPEN_SOURCE 600
#endif
}}}"	defect	closed	major	4.2.1	main		fixed		
