[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 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!

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]