File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- // +build darwin linux
5
+ // +build darwin linux freebsd
6
6
// +build cgo
7
7
8
8
package api
9
9
10
10
// #cgo darwin LDFLAGS: -lodbc
11
11
// #cgo linux LDFLAGS: -lodbc
12
+ // #cgo freebsd LDFLAGS: -L /usr/local/lib -lodbc
13
+ // #cgo freebsd CFLAGS: -I/usr/local/include
12
14
// #include <sql.h>
13
15
// #include <sqlext.h>
14
16
// #include <stdint.h>
Original file line number Diff line number Diff line change 1
- # !/usr/bin/perl
1
+ # !/usr/bin/env perl
2
2
# Copyright 2012 The Go Authors. All rights reserved.
3
3
# Use of this source code is governed by a BSD-style
4
4
# license that can be found in the LICENSE file.
114
114
// Use of this source code is governed by a BSD-style
115
115
// license that can be found in the LICENSE file.
116
116
117
- // +build darwin linux
117
+ // +build darwin linux freebsd
118
118
// +build cgo
119
119
120
120
package $package
@@ -123,6 +123,8 @@ package $package
123
123
124
124
// #cgo darwin LDFLAGS: -lodbc
125
125
// #cgo linux LDFLAGS: -lodbc
126
+ // #cgo freebsd LDFLAGS: -L /usr/local/lib -lodbc
127
+ // #cgo freebsd CFLAGS: -I/usr/local/include
126
128
// #include <sql.h>
127
129
// #include <sqlext.h>
128
130
import "C"
Original file line number Diff line number Diff line change 5
5
// Use of this source code is governed by a BSD-style
6
6
// license that can be found in the LICENSE file.
7
7
8
- // +build darwin linux
8
+ // +build darwin linux freebsd
9
9
// +build cgo
10
10
11
11
package api
@@ -14,6 +14,8 @@ import "unsafe"
14
14
15
15
// #cgo darwin LDFLAGS: -lodbc
16
16
// #cgo linux LDFLAGS: -lodbc
17
+ // #cgo freebsd LDFLAGS: -L /usr/local/lib -lodbc
18
+ // #cgo freebsd CFLAGS: -I/usr/local/include
17
19
// #include <sql.h>
18
20
// #include <sqlext.h>
19
21
import "C"
You can’t perform that action at this time.
0 commit comments