openbsd-ports/benchmarks/bonnie++/patches/patch-configure_in

32 lines
761 B
Plaintext

$OpenBSD: patch-configure_in,v 1.2 2012/08/19 18:55:08 jasper Exp $
--- configure.in.orig Fri Jul 3 21:23:53 2009
+++ configure.in Sat Nov 12 14:46:10 2011
@@ -60,7 +60,7 @@ if [[ -n "$snprintf" ]]; then
snprintf="#define NO_SNPRINTF"
fi
-AC_CHECK_HEADERS(algorithm algo.h algo)
+AC_CHECK_HEADERS(algorithm algo)
AC_SUBST(linux_pthread)
AC_TRY_COMPILE([#define _GNU_SOURCE
@@ -89,9 +82,18 @@ AC_TRY_RUN([#ifndef _LARGEFILE64_SOURCE
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/param.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+
+#ifdef BSD
+#define O_LARGEFILE 0
+#define off64_t off_t
+#define lseek64 lseek
+#define creat64 creat
+#define open64 open
+#endif
int main () {
int fd;