#ifdef __USE_GNU in /usr/include/bits/socket.h in F9 vs F8

Michael H. Warfield mhw at WittsEnd.com
Fri Oct 17 17:33:07 UTC 2008


Hey all,

	I'm not sure where to file this in bugzilla, so I'll start off here.
This is kind of a developer question but not a Fedora development
question and the exact rpm (glibc-headers) is not called out in bugzilla
and I'm not sure if I should file it under glibc or what.

	A network application which use to compile just fine under Fedora 8
refuses to compile under Fedora 9 complaining that it can not determine
the size of a "struct ucred" structure.  That structure is defined
in /usr/include/bits/socket.h but it's defined under and #ifdef in F9
which is not present in F8:

F8:

/* User visible structure for SCM_CREDENTIALS message */

struct ucred
{
  pid_t pid;                    /* PID of sending process.  */
  uid_t uid;                    /* UID of sending process.  */
  gid_t gid;                    /* GID of sending process.  */
};


F9:

#ifdef __USE_GNU
/* User visible structure for SCM_CREDENTIALS message */
struct ucred
{
  pid_t pid;                    /* PID of sending process.  */
  uid_t uid;                    /* UID of sending process.  */
  gid_t gid;                    /* GID of sending process.  */
};
#endif

	What gives?  And defining __USE_GNU in the calling application did not
solve the problem.  One of the intervening includes must be undefining
it.

	I don't see the reason for this change since all it does is eliminate
the ucred structure definition without defining any replacement.  The
application clearly compiled and worked under F8 and it compiles and
works under F9 if I remove that #ifdef, so I don't understand what it's
there for or what it's accomplishing since it won't conflict with any
other definition.

F8:	glibc-headers-2.7-2
F9:	glibc-headers-2.8-8
	
	Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081017/63b4424e/attachment-0001.sig>


More information about the fedora-list mailing list