summaryrefslogtreecommitdiff
path: root/imake.c
diff options
context:
space:
mode:
Diffstat (limited to 'imake.c')
-rw-r--r--imake.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/imake.c b/imake.c
index 49867cc..04e0fec 100644
--- a/imake.c
+++ b/imake.c
@@ -1450,6 +1450,21 @@ define_os_defaults(FILE *inFile)
name = &uts_name;
}
#endif
+# ifdef __FreeBSD__
+ /* Override for compiling in chroot of other OS version, such as
+ * in the bento build cluster.
+ */
+ {
+ 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