Bug 9887 - sessreg should include sys/types.h on FreeBSD
Summary: sessreg should include sys/types.h on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xdm (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 04:44 UTC by Roy Marples
Modified: 2007-06-11 16:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Include sys/types.h if we have it (229 bytes, patch)
2007-02-06 04:44 UTC, Roy Marples
no flags Details | Splinter Review

Description Roy Marples 2007-02-06 04:44:18 UTC
In file included from sessreg.h:59,
                 from sessreg.c:77:
/usr/include/utmp.h:54: error: expected specifier-qualifier-list before 'int32_t'
/usr/include/utmp.h:63: error: expected specifier-qualifier-list before 'int32_t'
sessreg.c: In function 'set_utmp':
sessreg.c:421: error: 'struct utmp' has no member named 'ut_time'
gmake[1]: *** [sessreg-sessreg.o] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/x11-apps/sessreg-1.0.2/work/sessreg-1.0.2'
gmake: *** [all] Error 2
Comment 1 Roy Marples 2007-02-06 04:44:50 UTC
Created attachment 8606 [details] [review]
Include sys/types.h if we have it
Comment 2 Daniel Stone 2007-02-27 01:36:12 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 Alan Coopersmith 2007-06-11 16:41:18 UTC
Thanks for the report - fix checked into git master:


commit 136525f01e4ce8e60e8c78b44654d8f6861233d2
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Mon Jun 11 16:38:00 2007 -0700

    X.Org Bug #9887: sessreg should include sys/types.h on FreeBSD
    
    X.Org Bugzilla #9887: <https://bugs.freedesktop.org/show_bug.cgi?id=9887>

(Just added it directly without #ifdefs, since all supported systems have 
 <sys/types.h> and other Xorg code already includes without any checks.)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.