]> arthur.barton.de Git - netatalk.git/commitdiff
Fix compilation with Solaris 10 on x86, courtesy of Frank Lahm.
authormorgana <morgana>
Tue, 6 Jan 2009 20:05:00 +0000 (20:05 +0000)
committermorgana <morgana>
Tue, 6 Jan 2009 20:05:00 +0000 (20:05 +0000)
sys/netatalk/endian.h

index 6fdc5e02a04178c3c660f2361c8a5a583f62fd20..a216e60556cc090f07d55d3d94aa0489902f22fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: endian.h,v 1.8 2006-02-08 03:00:09 didg Exp $
+ * $Id: endian.h,v 1.9 2009-01-06 20:05:00 morgana Exp $
  *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -116,7 +116,7 @@ typedef unsigned long long  u_int64_t;
 
 #else /* mips && KERNEL */
 
-#if !( defined( sun ) && defined( i386 ))
+#if !( defined( sun ) && ( defined( i386 ) || defined(__x86_64) ) )
 unsigned short ntohs(), htons();
 unsigned int  ntohl(), htonl();
 #endif /* ! ( sun && i386 ) */