Module Name: src
Committed By: pgoyette
Date: Sat Feb 20 06:15:06 UTC 2010
Modified Files:
src/usr.bin/tic: tic.c
Log Message:
Wrap the include of sys/endian.h in #ifdef HAVE_SYS_ENDIAN_H to avoid
build issues on systems that don't have a sys/endian.h
Pointed out by joerg@
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/tic/tic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/tic/tic.c
diff -u src/usr.bin/tic/tic.c:1.7 src/usr.bin/tic/tic.c:1.8
--- src/usr.bin/tic/tic.c:1.7 Sat Feb 20 06:08:01 2010
+++ src/usr.bin/tic/tic.c Sat Feb 20 06:15:06 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: tic.c,v 1.7 2010/02/20 06:08:01 pgoyette Exp $ */
+/* $NetBSD: tic.c,v 1.8 2010/02/20 06:15:06 pgoyette Exp $ */
/*
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -32,10 +32,13 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tic.c,v 1.7 2010/02/20 06:08:01 pgoyette Exp $");
+__RCSID("$NetBSD: tic.c,v 1.8 2010/02/20 06:15:06 pgoyette Exp $");
#include <sys/types.h>
+
+#ifdef HAVE_SYS_ENDIAN_H
#include <sys/endian.h>
+#endif
#include <ctype.h>
#include <err.h>