btrfs-progs: fixed the build with glibc 2.12.

This commit is contained in:
Tilman Sauerbeck 2010-08-11 08:36:29 +02:00
parent f81885904c
commit 40ffd18b74
3 changed files with 18 additions and 2 deletions

View File

@ -1 +1,2 @@
28b5f1258497899ef5fdc7e788a65f6a btrfs-progs-unstable-075587c.tar.gz
4fdbe37840e6e2316f629ea1cffa936e btrfs-progs.diff

View File

@ -5,12 +5,16 @@
name=btrfs-progs
version=075587c
release=2
source=(http://crux.nu/files/distfiles/$name-unstable-$version.tar.gz)
release=3
source=(http://crux.nu/files/distfiles/$name-unstable-$version.tar.gz
$name.diff)
build() {
cd $name-unstable-$version
# Fix the build with glibc 2.12:
patch -p1 -i $SRC/$name.diff
make
install -d -m 755 $PKG/usr/man/man8

View File

@ -0,0 +1,11 @@
diff -aur btrfs-progs-unstable-075587c.orig/btrfsck.c btrfs-progs-unstable-075587c/btrfsck.c
--- btrfs-progs-unstable-075587c.orig/btrfsck.c 2010-04-06 15:30:17.000000000 +0200
+++ btrfs-progs-unstable-075587c/btrfsck.c 2010-08-11 08:32:57.623000001 +0200
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include "kerncompat.h"
#include "ctree.h"
#include "disk-io.h"