Improve build: add <unistd.h> and use -O2 instead of -O3

(Nobody should use -O3. It just makes bad inlining decisions).
This commit is contained in:
Linus Torvalds 2005-04-20 13:00:08 -07:00
parent ca9be05421
commit 2dee060968
2 changed files with 2 additions and 1 deletions

View file

@ -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 -O3 -Wall
CFLAGS=-g -O2 -Wall
CC=gcc
AR=ar

View file

@ -1,6 +1,7 @@
#ifndef CACHE_H
#define CACHE_H
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>