Ticket #2 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

getopt build error, missing u_int type

Reported by: vcaron Owned by: ppronchery
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

comment:1 Changed 5 years ago by vcaron

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, thanks !

Note: See TracTickets for help on using tickets.