Skip to content

Commit b4aabd3

Browse files
committed
Make mmap_windows.go license clearer
1 parent acf1f2c commit b4aabd3

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,32 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1313
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1414
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1515
PERFORMANCE OF THIS SOFTWARE.
16+
17+
--------------------------------------------------------------------
18+
19+
The file mmap_windows.go is governed by the following license:
20+
21+
Copyright (c) 2011, Evan Shaw <edsrzf@gmail.com>
22+
All rights reserved.
23+
24+
Redistribution and use in source and binary forms, with or without
25+
modification, are permitted provided that the following conditions are met:
26+
* Redistributions of source code must retain the above copyright
27+
notice, this list of conditions and the following disclaimer.
28+
* Redistributions in binary form must reproduce the above copyright
29+
notice, this list of conditions and the following disclaimer in the
30+
documentation and/or other materials provided with the distribution.
31+
* Neither the name of the copyright holder nor the
32+
names of its contributors may be used to endorse or promote products
33+
derived from this software without specific prior written permission.
34+
35+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
36+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
37+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
39+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
40+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
41+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ with your changes.
3333

3434
## License ##
3535

36-
This is free software, licensed under the ISC License.
36+
This is free software, primarily licensed under the ISC License. The file
37+
`mmap_windows.go` is licensed under a BSD-style license by Evan Shaw.

mmap_windows.go

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,30 @@ package maxminddb
55

66
// Windows support largely borrowed from mmap-go.
77
//
8-
// Copyright 2011 Evan Shaw. All rights reserved.
9-
// Use of this source code is governed by a BSD-style
10-
// license that can be found in the LICENSE file.
8+
// Copyright (c) 2011, Evan Shaw <edsrzf@gmail.com>
9+
// All rights reserved.
10+
11+
// Redistribution and use in source and binary forms, with or without
12+
// modification, are permitted provided that the following conditions are met:
13+
// * Redistributions of source code must retain the above copyright
14+
// notice, this list of conditions and the following disclaimer.
15+
// * Redistributions in binary form must reproduce the above copyright
16+
// notice, this list of conditions and the following disclaimer in the
17+
// documentation and/or other materials provided with the distribution.
18+
// * Neither the name of the copyright holder nor the
19+
// names of its contributors may be used to endorse or promote products
20+
// derived from this software without specific prior written permission.
21+
22+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23+
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24+
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25+
// DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
26+
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27+
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28+
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29+
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31+
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1132

1233
import (
1334
"errors"

0 commit comments

Comments
 (0)