about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-rw-r--r--csu/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/csu/Makefile b/csu/Makefile
index 79eeef190f..1fb2e8f96b 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -182,7 +182,11 @@ $(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
 		       version=`uname -r`; \
 		     fi; \
 		   fi; \
-		   echo "\"Compiled on a Linux $$version system" \
+		   os=`uname -s 2> /dev/null`; \
+		   if [ -z "$$os" ]; then \
+		     os=Linux; \
+		   fi; \
+		   echo "\"Compiled on a $$os $$version system" \
 		        "on `date +%Y-%m-%d`.\\n\"" ;; \
 	   *) ;; \
 	 esac; \