File tree 5 files changed +15
-16
lines changed
5 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ install: true
34
34
35
35
script :
36
36
- npm test
37
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -it - w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh; fi;
37
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh; fi;
38
38
39
39
40
40
after_success :
Original file line number Diff line number Diff line change 7
7
'src/bcrypt.cc' ,
8
8
'src/bcrypt_node.cc'
9
9
],
10
+ 'defines' : [
11
+ '_GNU_SOURCE' ,
12
+ ],
10
13
'cflags!' : [ '-fno-exceptions' ],
11
14
'cflags_cc!' : [ '-fno-exceptions' ],
12
15
'include_dirs' : [
Original file line number Diff line number Diff line change 35
35
#include < stdlib.h>
36
36
#include < sys/types.h>
37
37
#include < string.h>
38
+
38
39
#include " node_blf.h"
39
40
40
41
#ifdef _WIN32
Original file line number Diff line number Diff line change 39
39
* Bruce Schneier.
40
40
*/
41
41
42
- #if 0
43
- #include <stdio.h> /* used for debugging */
44
- #include <string.h>
45
- #endif
46
-
47
- #include < sys/types.h>
48
-
49
42
#include " node_blf.h"
50
43
51
44
#undef inline
Original file line number Diff line number Diff line change 34
34
#ifndef _NODE_BLF_H_
35
35
#define _NODE_BLF_H_
36
36
37
+ #include <sys/types.h>
38
+
37
39
/* Solaris compatibility */
38
40
#ifdef __sun
39
41
#define u_int8_t uint8_t
50
52
#endif
51
53
52
54
/* Windows ssize_t compatibility */
53
- #if defined(_WIN32 ) || defined(_WIN64 )
54
- # if defined(_WIN64 )
55
- typedef __int64 LONG_PTR ;
56
- # else
57
- typedef long LONG_PTR ;
58
- # endif
59
- typedef LONG_PTR SSIZE_T ;
60
- typedef SSIZE_T ssize_t ;
55
+ #if defined(_WIN32 ) || defined(_WIN64 )
56
+ # if defined(_WIN64 )
57
+ typedef __int64 LONG_PTR ;
58
+ # else
59
+ typedef long LONG_PTR ;
60
+ # endif
61
+ typedef LONG_PTR SSIZE_T ;
62
+ typedef SSIZE_T ssize_t ;
61
63
#endif
62
64
63
65
#define BCRYPT_VERSION '2'
You can’t perform that action at this time.
0 commit comments