From 4003dfa31341e5584375c1423d223f099a6049c7 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sun, 1 Oct 2006 13:46:02 +0000 Subject: Add init script --- example/Makefile.am | 2 +- example/fusexmp.c | 4 ++++ example/fusexmp_fh.c | 4 ++++ example/hello.c | 4 ++++ example/hello_ll.c | 4 ++++ example/null.c | 4 ++++ 6 files changed, 21 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/Makefile.am b/example/Makefile.am index 9fe35e8..469dcb4 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CPPFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT noinst_PROGRAMS = fusexmp fusexmp_fh null hello hello_ll LDADD = ../lib/libfuse.la -lpthread diff --git a/example/fusexmp.c b/example/fusexmp.c index b32e236..b086235 100644 --- a/example/fusexmp.c +++ b/example/fusexmp.c @@ -4,8 +4,12 @@ This program can be distributed under the terms of the GNU GPL. See the file COPYING. + + gcc -Wall `pkg-config fuse --cflags --libs` fusexmp.c -o fusexmp */ +#define FUSE_USE_VERSION 26 + #include #ifdef linux diff --git a/example/fusexmp_fh.c b/example/fusexmp_fh.c index 2ad1a50..c10044c 100644 --- a/example/fusexmp_fh.c +++ b/example/fusexmp_fh.c @@ -4,8 +4,12 @@ This program can be distributed under the terms of the GNU GPL. See the file COPYING. + + gcc -Wall `pkg-config fuse --cflags --libs` fusexmp_fh.c -o fusexmp_fh */ +#define FUSE_USE_VERSION 26 + #include #define _GNU_SOURCE diff --git a/example/hello.c b/example/hello.c index f717c34..7a1cdb5 100644 --- a/example/hello.c +++ b/example/hello.c @@ -4,8 +4,12 @@ This program can be distributed under the terms of the GNU GPL. See the file COPYING. + + gcc -Wall `pkg-config fuse --cflags --libs` hello.c -o hello */ +#define FUSE_USE_VERSION 26 + #include #include #include diff --git a/example/hello_ll.c b/example/hello_ll.c index dbe141c..934e9a7 100644 --- a/example/hello_ll.c +++ b/example/hello_ll.c @@ -4,8 +4,12 @@ This program can be distributed under the terms of the GNU GPL. See the file COPYING. + + gcc -Wall `pkg-config fuse --cflags --libs` hello_ll.c -o hello_ll */ +#define FUSE_USE_VERSION 26 + #include #include #include diff --git a/example/null.c b/example/null.c index eda843a..1ab6573 100644 --- a/example/null.c +++ b/example/null.c @@ -4,8 +4,12 @@ This program can be distributed under the terms of the GNU GPL. See the file COPYING. + + gcc -Wall `pkg-config fuse --cflags --libs` null.c -o null */ +#define FUSE_USE_VERSION 26 + #include #include #include -- cgit v1.2.3