Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tic Wrap the include of sys/endian.h in #ifdef HAVE_...
details: https://anonhg.NetBSD.org/src/rev/2ee9775f6ae0
branches: trunk
changeset: 752229:2ee9775f6ae0
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Feb 20 06:15:06 2010 +0000
description:
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@
diffstat:
usr.bin/tic/tic.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 616e4f361b7e -r 2ee9775f6ae0 usr.bin/tic/tic.c
--- a/usr.bin/tic/tic.c Sat Feb 20 06:08:01 2010 +0000
+++ b/usr.bin/tic/tic.c Sat Feb 20 06:15:06 2010 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index