summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f94b8df)
This is needed on 32bit systems for files > 2G. Only tested on Linux
so far.
CPPFLAGS += -Wmissing-format-attribute
CPPFLAGS += -Wunused-macros
CPPFLAGS += -Wbad-function-cast
CPPFLAGS += -Wmissing-format-attribute
CPPFLAGS += -Wunused-macros
CPPFLAGS += -Wbad-function-cast
+CPPFLAGS += -D_LARGEFILE64_SOURCE
+CPPFLAGS += $(shell getconf LFS64_CFLAGS)
+
+LDFLAGS += -D_LARGEFILE64_SOURCE
+LDFLAGS += $(shell getconf LFS64_LDFLAGS)
+LDFLAGS += $(shell getconf LFS64_LIBS)
+
Makefile.deps: $(wildcard *.c *.h)
gcc -MM -MG *.c > $@
Makefile.deps: $(wildcard *.c *.h)
gcc -MM -MG *.c > $@
-include Makefile.deps
adu: $(objects)
-include Makefile.deps
adu: $(objects)
- $(CC) -o $@ $(objects) -lcrypto -losl
+ $(CC) -o $@ $(LDFLAGS) $(objects) -lcrypto -losl
cmdline.o: cmdline.c cmdline.h
$(CC) -c $(CPPFLAGS) $<
cmdline.o: cmdline.c cmdline.h
$(CC) -c $(CPPFLAGS) $<
}
while ((entry = readdir(dir))) {
mode_t m;
}
while ((entry = readdir(dir))) {
mode_t m;
uint32_t uid;
uint64_t size;
struct user_info *ui;
uint32_t uid;
uint64_t size;
struct user_info *ui;
continue;
if (!strcmp(entry->d_name, ".."))
continue;
continue;
if (!strcmp(entry->d_name, ".."))
continue;
- if (lstat(entry->d_name, &s) == -1) {
- WARNING_LOG("lstat error for %s/%s (%s)\n",
+ if (lstat64(entry->d_name, &s) == -1) {
+ WARNING_LOG("lstat64 error for %s/%s (%s)\n",
dirname, entry->d_name, strerror(errno));
continue;
}
dirname, entry->d_name, strerror(errno));
continue;
}