mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
18 lines
647 B
Python
18 lines
647 B
Python
$NetBSD: patch-numpy_core_setup.py,v 1.3 2016/07/24 15:25:22 kamil Exp $
|
|
|
|
Handle NetBSD specific <sys/endian.h>
|
|
|
|
--- numpy/core/setup.py.orig 2016-06-25 15:38:34.000000000 +0000
|
|
+++ numpy/core/setup.py
|
|
@@ -272,6 +272,10 @@ def check_types(config_cmd, ext, build_d
|
|
if res:
|
|
private_defines.append(('HAVE_ENDIAN_H', 1))
|
|
public_defines.append(('NPY_HAVE_ENDIAN_H', 1))
|
|
+ res = config_cmd.check_header("sys/endian.h")
|
|
+ if res:
|
|
+ private_defines.append(('HAVE_SYS_ENDIAN_H', 1))
|
|
+ public_defines.append(('NPY_HAVE_SYS_ENDIAN_H', 1))
|
|
|
|
# Check basic types sizes
|
|
for type in ('short', 'int', 'long'):
|