Project

General

Profile

Actions

Bug #965

closed

'FILE' undefined on -DEVEL?

Added by wa1ter over 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

While trying to build a pkgsrc package, the configure step failed because this
code won't compile on DFly:

#include <sys/types.h>
#include <inttypes.h>
#include <stdint.h>
#include <stddef.h>
#include <unistd.h>
#include <stdio.h>
typedef FILE ac__type_new_;
int
main () {
if ((ac__type_new_ *) 0)
return 0;
if (sizeof (ac__type_new_))
return 0;
;
return 0;
}

AFAICT, the reason is that FILE is undefined, or wrongly defined. The same
code compiles on the other BSDs and linux, so we are different somehow.

Is this by intention, and why?

Thanks.

Actions

Also available in: Atom PDF