Opened 12 years ago

Closed 12 years ago

#2 closed bug (fixed)

getopt build error, missing u_int type

Reported by: Vincent Caron Owned by: Pierre Pronchery
Priority: minor Component: Application
Keywords: Cc:

Description

zerolap:~/src/openmoko/runningbear/trunk/Apps/GNU/Sources/getopt/getopt-2.5$ make
gcc -I. -ffreestanding   -c -o env/setenv.o env/setenv.c
env/setenv.c: In function ‘setenv’:
env/setenv.c:90: error: ‘u_int’ undeclared (first use in this function)

Glibc defines a u_int in <sys/types.h> guarded by a #ifdef __USE_BSD. Not an ISO feature it seems.

Change History (1)

comment:1 Changed 12 years ago by Vincent Caron

Resolution: fixed
Status: newclosed

Fixed, thanks !

Note: See TracTickets for help on using tickets.