Overview
Comment: | Updated to support being compiled with dietlibc |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | a832cf965b2ddcf152d458842e085f267c891d81 |
User & Date: | rkeene on 2014-02-05 09:12:49 |
Other Links: | manifest | tags |
Context
2014-02-05
| ||
09:18 | Removed extraneous flush check-in: 2df202595a user: rkeene tags: trunk | |
09:12 | Updated to support being compiled with dietlibc check-in: a832cf965b user: rkeene tags: trunk | |
09:07 | Noted that we should process arguments check-in: 87034c1a07 user: rkeene tags: trunk | |
Changes
Modified Makefile from [798e5fa576] to [4f9f8484cc].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
CC = gcc CFLAGS = -Wall -Werror -W -pthread -O3 LDFLAGS = -pthread LIBS = -lpthread filed: filed.o filed.o: filed.c clean: rm -f filed filed.o distclean: clean .PHONY: clean distclean |
> > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
CC = gcc
CFLAGS = -Wall -Werror -W -pthread -O3
LDFLAGS = -pthread
LIBS = -lpthread
filed: filed.o
$(CC) $(CFLAGS) $(LDFLAGS) -o "$@" $^ $(LIBS)
filed.o: filed.c
clean:
rm -f filed filed.o
distclean: clean
.PHONY: clean distclean
|
Modified filed.c from [310b7c80ea] to [3fb691b2d3].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#include <sys/sendfile.h> #include <sys/socket.h> #include <sys/types.h> #include <arpa/inet.h> #include <sys/mman.h> #include <sys/stat.h> #include <pthread.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <stdio.h> #include <time.h> |
> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include <sys/sendfile.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <pthread.h>
#include <strings.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
|