summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-10-21 23:45:56 +0000
committerjoerg <joerg@NetBSD.org>2011-10-21 23:45:56 +0000
commitf7bbdb4b898a3c040d0d33feb2b90da9f6c46e43 (patch)
treedf2d350509c7868f2a74b20040d003c6f083833a /lib/libc/stdlib
parentb5976ec47fee75fa6c783b8d6ebe3f2b463d87f0 (diff)
sys/endian.h might not exist in the src/tools case
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/mi_vector_hash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdlib/mi_vector_hash.c b/lib/libc/stdlib/mi_vector_hash.c
index b867ebe858b..0cd75f206d3 100644
--- a/lib/libc/stdlib/mi_vector_hash.c
+++ b/lib/libc/stdlib/mi_vector_hash.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mi_vector_hash.c,v 1.3 2010/03/19 18:11:30 joerg Exp $ */
+/* $NetBSD: mi_vector_hash.c,v 1.4 2011/10/21 23:45:56 joerg Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -43,11 +43,13 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mi_vector_hash.c,v 1.3 2010/03/19 18:11:30 joerg Exp $");
+__RCSID("$NetBSD: mi_vector_hash.c,v 1.4 2011/10/21 23:45:56 joerg Exp $");
#include "namespace.h"
+#if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H
#include <sys/endian.h>
+#endif
#include <stdint.h>
#include <stdlib.h>