Signed-off-by: David Sterba <dsterba@suse.com>
fssum: tests/fssum.c
@echo " [LD] $@"
# 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
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 021110-1307, USA.
*/
-#ifdef __LINUX__
+
#define _BSD_SOURCE
#define _LARGEFILE64_SOURCE
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef __SOLARIS__
-#include <sys/mkdev.h>
-#endif
#include <openssl/md5.h>
#include <netinet/in.h>
#include <inttypes.h>
#define CS_SIZE 16
#define CHUNKS 128
-#ifdef __LINUX__
#ifndef SEEK_DATA
#define SEEK_DATA 3
#define SEEK_HOLE 4
#else
#define htonll(x) (x)
#endif
-#endif
/* TODO: add hardlink recognition */
/* TODO: add xattr/acl */