2007-01-15 23:06:07 +00:00
|
|
|
--- Bonnie.c
|
|
|
|
+++ Bonnie.c
|
|
|
|
@@ -170,6 +170,13 @@
|
|
|
|
#define o_direct 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifndef PAGE_SIZE
|
|
|
|
+#define PAGE_SIZE getpagesize()
|
|
|
|
+#endif
|
|
|
|
+#ifndef PAGE_MASK
|
|
|
|
+#define PAGE_MASK (~(PAGE_SIZE - 1))
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
int main(
|
|
|
|
int argc,
|
|
|
|
char * argv[])
|
|
|
|
--- Makefile
|
|
|
|
+++ Makefile
|
|
|
|
@@ -23,9 +23,9 @@
|
|
|
|
# Added 99/07/20, <garloff@suse.de>
|
|
|
|
install: Bonnie
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
|
|
- install -s -m 0755 -o root -g root Bonnie $(DESTDIR)$(PREFIX)/bin/bonnie
|
|
|
|
+ install -m 0755 Bonnie $(DESTDIR)$(PREFIX)/bin/bonnie
|
|
|
|
install -d $(DESTDIR)$(MANDIR)/man1
|
|
|
|
- install -m 0644 -o man -g root bonnie.1 $(DESTDIR)$(MANDIR)/man1/bonnie.1
|
|
|
|
+ install -m 0644 bonnie.1 $(DESTDIR)$(MANDIR)/man1/bonnie.1
|
|
|
|
gzip -9f $(DESTDIR)$(MANDIR)/man1/bonnie.1
|
|
|
|
|
|
|
|
clean:
|
2008-04-26 09:25:50 +00:00
|
|
|
--- Bonnie.c 2002-04-04 12:59:46.000000000 +0000
|
|
|
|
+++ Bonnie.c 2008-04-26 05:17:35.000000000 +0000
|
|
|
|
@@ -77,11 +77,6 @@
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
-#ifdef __linux__
|
|
|
|
-/* for o_direct */
|
|
|
|
-#include <asm/page.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#ifdef unix
|
|
|
|
#include <signal.h>
|
|
|
|
#endif
|