Subject: __unix__ macro
To: None <>
From: Julio Merino <>
List: netbsd-users
Date: 08/26/2002 12:53:18

While trying to compile OpenCM, I saw that __unix__ was not defined during
compilation... I've tried the following program in NetBSD, OpenBSD and FreeBSD:

#include <stdio.h>
int main() {
#ifdef __unix__
printf("not defined\n");
return 0;

Both in FreeBSD and OpenBSD it says 'defined', but in NetBSD I get 'not defined'.
Why is this?


HispaBSD admin -
Julio Merino <>