mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-25 05:04:14 +08:00
btrfs-progs: tests: fssum, drop unnecessray build defines
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
9a98589f00
commit
12cae4c2c6
2
Makefile
2
Makefile
@ -469,7 +469,7 @@ library-test.static: library-test.c messages.static.o $(libs_static)
|
|||||||
fssum: tests/fssum.c
|
fssum: tests/fssum.c
|
||||||
@echo " [LD] $@"
|
@echo " [LD] $@"
|
||||||
# FIXME: no configure-time check for libcrypto from SSL
|
# FIXME: no configure-time check for libcrypto from SSL
|
||||||
$(Q)$(CC) $(CFLAGS) -o $@ $< -D__LINUX__ $(LDFLAGS) -lcrypto
|
$(Q)$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -lcrypto
|
||||||
|
|
||||||
test-build: test-build-pre test-build-real
|
test-build: test-build-pre test-build-real
|
||||||
|
|
||||||
|
@ -15,13 +15,12 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
* Boston, MA 021110-1307, USA.
|
* Boston, MA 021110-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifdef __LINUX__
|
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#define _LARGEFILE64_SOURCE
|
#define _LARGEFILE64_SOURCE
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -31,9 +30,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef __SOLARIS__
|
|
||||||
#include <sys/mkdev.h>
|
|
||||||
#endif
|
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
@ -42,7 +38,6 @@
|
|||||||
#define CS_SIZE 16
|
#define CS_SIZE 16
|
||||||
#define CHUNKS 128
|
#define CHUNKS 128
|
||||||
|
|
||||||
#ifdef __LINUX__
|
|
||||||
#ifndef SEEK_DATA
|
#ifndef SEEK_DATA
|
||||||
#define SEEK_DATA 3
|
#define SEEK_DATA 3
|
||||||
#define SEEK_HOLE 4
|
#define SEEK_HOLE 4
|
||||||
@ -53,7 +48,6 @@
|
|||||||
#else
|
#else
|
||||||
#define htonll(x) (x)
|
#define htonll(x) (x)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* TODO: add hardlink recognition */
|
/* TODO: add hardlink recognition */
|
||||||
/* TODO: add xattr/acl */
|
/* TODO: add xattr/acl */
|
||||||
|
Loading…
Reference in New Issue
Block a user