Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.

Commit b4ce209

Browse files
committed
better linux/g++ compatibility
1 parent 3885c06 commit b4ce209

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.o
2+
o/

Cache/MappedBlockCache.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <algorithm>
33
#include <cerrno>
44
#include <cstring>
5+
#include <cstddef>
56

67
#include <sys/types.h>
78
#include <sys/mman.h>

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CC = c++
2-
CPPFLAGS += -Wall -W -Wno-multichar -Wno-c++11-narrowing -I. -O2 -g -std=c++11
2+
CPPFLAGS += -Wall -W -Wno-multichar -Wno-unused-parameter -Wno-unknown-pragmas -Wno-narrowing -I. -O2 -g -std=c++11
3+
LDFLAGS += -pthread
34
UNAME = $(shell uname -s)
45

56
ifeq ($(UNAME),Darwin)

bin/apfm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ int action_get(int argc, char **argv, Pascal::VolumeEntry *volume)
742742

743743

744744

745-
File::File file(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
745+
File file(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
746746

747747
unsigned fileSize = entry->fileSize();
748748
unsigned offset = 0;

bin/fuse_pascal.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <cstdlib>
33
#include <cstring>
44
#include <cctype>
5+
#include <cstddef>
56

67
#include <vector>
78
#include <string>

bin/profuse.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <cstdlib>
1919
#include <cstring>
2020
#include <cctype>
21+
#include <cstddef>
2122

2223
#include <vector>
2324
#include <string>

0 commit comments

Comments
 (0)