~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to debian/patches/011-__FreeBSD_kernel__.patch

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- a/include/u.h
2
 
+++ b/include/u.h
3
 
@@ -45,7 +45,7 @@ extern "C" {
4
 
 #      define _XOPEN_SOURCE 1000
5
 
 #      define _XOPEN_SOURCE_EXTENDED 1
6
 
 #endif
7
 
-#if defined(__FreeBSD__)
8
 
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
9
 
 #      include <sys/cdefs.h>
10
 
        /* for strtoll */
11
 
 #      undef __ISO_C_VISIBLE
12
 
--- a/src/cmd/dist/unix.c
13
 
+++ b/src/cmd/dist/unix.c
14
 
@@ -653,7 +653,7 @@ main(int argc, char **argv)
15
 
                gohostarch = "amd64";
16
 
 #elif defined(__linux__)
17
 
        gohostos = "linux";
18
 
-#elif defined(__FreeBSD__)
19
 
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
20
 
        gohostos = "freebsd";
21
 
 #elif defined(__OpenBSD__)
22
 
        gohostos = "openbsd";
23
 
--- a/src/lib9/dirfwstat.c
24
 
+++ b/src/lib9/dirfwstat.c
25
 
@@ -29,7 +29,7 @@ THE SOFTWARE.
26
 
 #include <sys/time.h>
27
 
 #include <sys/stat.h>
28
 
 
29
 
-#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__)
30
 
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__)
31
 
 /* do nothing -- futimes exists and is fine */
32
 
 
33
 
 #elif defined(__SunOS5_9__)