[PATCH] Fix rpc/ headers with -std=c[89]9

Jakub Jelinek jakub@redhat.com
Tue May 29 01:24:00 GMT 2001


Hi!

rpc/ headers use some types which are only defined with __USE_BSD, so
including a rpc/ header in -std=c[89]9 or -ansi compilation fails.
Below are two approaches, the first is just to use __ prefixed variants of
the types in rpc/ headers, the latter is to define those types in
rpc/types.h even if __USE_BSD is not defined (sunrpc code especially rpcgen
generated will probably use those types as well).

	Jakub


More information about the Libc-hacker mailing list