Skip to content

Commit 469f37f

Browse files
committed
travis/compat
1 parent 2268c03 commit 469f37f

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@ env:
77
- UPDATE_GCC_BINUTILS=1
88
matrix:
99
- OCAML_VERSION=4.02
10-
- OCAML_VERSION=4.02 DEPOPTS="lwt cstruct-lwt"
1110
- OCAML_VERSION=4.03
12-
- OCAML_VERSION=4.03 DEPOPTS="lwt cstruct-lwt"
13-
- OCAML_VERSION=4.03 DEPOPTS="mirage-entropy"
1411
- OCAML_VERSION=4.04
15-
- OCAML_VERSION=4.04 DEPOPTS="lwt cstruct-lwt"
16-
- OCAML_VERSION=4.04 DEPOPTS="mirage-xen"
1712
- OCAML_VERSION=4.05
1813
- OCAML_VERSION=4.05 DEPOPTS="lwt cstruct-lwt"
19-
- OCAML_VERSION=4.05 DEPOPTS="mirage-solo5 mirage-entropy"
20-
- OCAML_VERSION=4.06
14+
- OCAML_VERSION=4.06 TESTS=true
15+
- OCAML_VERSION=4.06 TESTS=true NOCRYPTO_ACCELERATE="false"
2116
- OCAML_VERSION=4.06 DEPOPTS="lwt cstruct-lwt"
17+
- OCAML_VERSION=4.04 DEPOPTS="mirage-xen"
2218
- OCAML_VERSION=4.06 DEPOPTS="mirage-solo5 mirage-entropy"
2319
notifications:
2420
email: false

_tags

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ true: package(bytes cstruct)
1717
<mirage>: include
1818
<mirage/*.ml{,i}>: package(lwt mirage-entropy)
1919

20-
<**/*.c>: ccopt(--std=c99 -Wall -Wextra -O3)
20+
<**/*.c>: ccopt(-D_DEFAULT_SOURCE --std=c99 -Wall -Wextra -O3)
2121
<**/aes_aesni.c>: ccopt(-Wno-implicit-fallthrough)
2222

23-
<bench/*>: use_nocrypto, package(zarith cstruct.unix)
23+
<bench/*>: use_nocrypto, package(zarith)
2424
<tests/*>: use_nocrypto, package(zarith oUnit)
2525

2626
<rondom>: -traverse

opam

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ license: "ISC"
99
tags: [ "org:mirage" ]
1010
available: [ ocaml-version >= "4.02.0" ]
1111

12-
build: ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "false"
13-
"--with-lwt" "%{lwt+cstruct-lwt:installed}%"
14-
"--xen" "%{mirage-xen:installed}%"
15-
"--mirage" "%{mirage-entropy+lwt:installed}%"
16-
"--freestanding" "%{mirage-solo5:installed}%"]
12+
build: [
13+
[ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"
14+
"--tests" "false"
15+
"--with-lwt" "%{lwt+cstruct-lwt:installed}%"
16+
"--xen" "%{mirage-xen:installed}%"
17+
"--mirage" "%{mirage-entropy+lwt:installed}%"
18+
"--freestanding" "%{mirage-solo5:installed}%" ]
19+
[ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"
20+
"--tests" "true" ] {test}
21+
]
22+
run-test: ["ocaml" "pkg/pkg.ml" "test" ]
23+
1724

1825
depends: [
1926
"ocamlfind" {build}

src/native/nocrypto.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
#define H__NOCRYPTO
33

44
#include <stdint.h>
5-
#define __USE_MISC
6-
75
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
86
#include <sys/endian.h>
97
#elif defined(__APPLE__)
108
#include <machine/endian.h>
119
#else
10+
// Needs _DEFAULT_SOURCE on Linux.
1211
#include <endian.h>
1312
#endif
1413

0 commit comments

Comments
 (0)