Bug 2429 - Wrong prototype for sysarch(2) breaks build on FreeBSD/alpha
Summary: Wrong prototype for sysarch(2) breaks build on FreeBSD/alpha
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Alpha FreeBSD
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 20:40 UTC by Dejan Lesjak
Modified: 2005-05-08 23:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch by Greg Lewis (671 bytes, patch)
2005-01-30 20:41 UTC, Dejan Lesjak
no flags Details | Splinter Review

Description Dejan Lesjak 2005-01-30 20:40:39 UTC
The prototype in file programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c:

extern int sysarch(int, char *);

should actually be:

extern int sysarch(int, void *);

It was added to machine/sysarch.h system header in rev. 1.7 about a year ago:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/alpha/include/sysarch.h
The patch for this was added to ports collection by Greg Lewis (glewis at 
FreeBSD.org):
http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11-servers/XFree86-4-Server/files/
patch-alpha_video.c
for XFree86 port and later for X.Org port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11-servers/xorg-server/files/patch-
alpha_video.c
Diff to current CVS HEAD will be attached. The changed line is only for #ifdef 
__FreeBSD__ case, so it shouldn't affect other operating systems.
Comment 1 Dejan Lesjak 2005-01-30 20:41:47 UTC
Created attachment 1795 [details] [review]
Patch by Greg Lewis
Comment 2 Roland Mainz 2005-03-02 08:22:40 UTC
Matthieu:
Is the patch OK for you ?
Comment 3 Eric Anholt 2005-05-09 16:42:34 UTC
Fix committed.


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.