freebsd-ports/x11/XFree86-4-libraries/files/patch-imake.c
Eric Anholt 62d3b1c1fc Update XFree86 ports, including linux_dri, to 4.3.0. Set IGNORE= in dri-devel
for being outdated.  Thank you to all the testers and people who submitted
patches for this update.

Approved by:	portmgr
2003-03-11 23:38:11 +00:00

22 lines
601 B
C

--- config/imake/imake.c.orig Tue Dec 17 04:21:38 2002
+++ config/imake/imake.c Sat Jan 4 15:57:23 2003
@@ -1384,6 +1384,19 @@
name = &uts_name;
}
#endif
+# ifdef __FreeBSD__
+ /* Hack for FreeBSD ports "Cross Version" compiling system. */
+ {
+ char *e;
+ if ((e = getenv("OSREL")) != NULL &&
+ strlen(name->sysname) + strlen(e) + 1 < SYS_NMLN) {
+ strcpy(name->release, e);
+ strcpy(name->version, name->sysname);
+ strcat(name->version, " ");
+ strcat(name->version, e);
+ }
+ }
+# endif
# if defined DEFAULT_OS_NAME
# if defined CROSSCOMPILE