Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD support #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#SANI=-fsanitize=address -fno-omit-frame-pointer

CC ?= cc
CFLAGS += -D_POSIX_C_SOURCE=200809L -std=c99 -Wall -Wno-missing-braces -g -O $(SANI)
LDFLAGS += -lm $(SANI)
CFLAGS += -std=c99 -Wall -Wno-missing-braces -g -O -I/usr/local/include $(SANI)
LDFLAGS += -lm -linotify -L/usr/local/lib $(SANI)

TARGET = chiaharvestgraph
SRC = chiaharvestgraph.c grapher.c
Expand Down
4 changes: 4 additions & 0 deletions chiaharvestgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
// (c)2021 by Abraham Stolk.
// XCH Donations: xch1zfgqfqfdse3e2x2z9lscm6dx9cvd5j2jjc7pdemxjqp0xp05xzps602592

#ifdef __GLIBC__
# define _POSIX_C_SOURCE 200809L
#endif

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions grapher.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//
// by Abraham Stolk.

#ifdef __GLIBC__
# define _POSIX_C_SOURCE 200809L
#endif

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
Expand Down