• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ctorrent/0001-fix-musl-build.patch
Brendan HeadingBrendan Heading committed b5ba8d60f7329 Jul 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
[PATCH] Fix compilation on musl
2
​
3
Using the ssize_t typedef requires including <unistd.h>. 
4
​
5
See : https://sourceforge.net/p/dtorrent/patches/3/
6
​
7
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
8
Upstream-status: submitted
9
---
10
diff -Nur a/compat.c b/compat.c
11
--- a/compat.c  2015-07-29 18:22:24.658415171 +0100
12
+++ b/compat.c  2015-07-29 18:36:21.752576311 +0100
13
@@ -63,6 +63,7 @@
14
 
15
 #ifndef HAVE_STRNSTR
16
 #include <string.h>
17
+#include <unistd.h>
18
 /* FUNCTION PROGRAMER: Siberiaic Sang */
19
 char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
20
 {
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.