git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ca9be05
)
Improve build: add <unistd.h> and use -O2 instead of -O3
author
Linus Torvalds
<redacted>
Wed, 20 Apr 2005 20:00:08 +0000
(13:00 -0700)
committer
Linus Torvalds
<redacted>
Wed, 20 Apr 2005 20:00:08 +0000
(13:00 -0700)
(Nobody should use -O3. It just makes bad inlining decisions).
Makefile
patch
|
blob
|
history
cache.h
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index cd299f850679b2456e360d3aa6a2d529855ba7a5..a244b27ac61489b7d7fa4246e82479897d3bb886 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-7,7
+7,7
@@
# BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly
# break unless your underlying filesystem supports those sub-second times
# (my ext3 doesn't).
-CFLAGS=-g -O
3
-Wall
+CFLAGS=-g -O
2
-Wall
CC=gcc
AR=ar
diff --git
a/cache.h
b/cache.h
index eab355da5d2f6595053f28f0cca61181ac314ee9..a67b79e97f9db01bc270a07f3be9cda610845128 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-1,6
+1,7
@@
#ifndef CACHE_H
#define CACHE_H
+#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
git clone https://git.99rst.org/PROJECT