Skip to content

Commit

Permalink
Plan should build with GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickziv committed Dec 12, 2013
1 parent 5b72436 commit 4137aaf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plan:
dtrace -h -s plan_probes.d
cc -c plan_manip.c
cc -c plan_main.c
cc -c plan_atomic.c
gcc -c plan_manip.c
gcc -c plan_main.c
gcc -c plan_atomic.c
dtrace -G -32 -s plan_probes.d plan_manip.o plan_main.o plan_atomic.o
cc -o plan plan_main.o plan_manip.o plan_atomic.o plan_probes.o -lumem -ldtrace
gcc -o plan plan_main.o plan_manip.o plan_atomic.o plan_probes.o -lumem -ldtrace

clean:
rm plan_main.o
Expand Down
1 change: 1 addition & 0 deletions src/plan_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define NEXT 2

typedef enum day {
NEGDAY = -1, /* force day_t to be signed, GCC/SunCC diff */
SUN,
MON,
TUES,
Expand Down
1 change: 1 addition & 0 deletions src/plan_manip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,7 @@ list(day_t d, tm_t *date, int flag, int nl)
int dfd;
int have_date;


if (!date && d <= -1) {
exit(0);
}
Expand Down

0 comments on commit 4137aaf

Please sign in to comment.