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

build failure with 0.4 #12

Closed
darix opened this Issue Mar 8, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@darix

darix commented Mar 8, 2016

jo.c: In function 'main':
jo.c:218:2: error: implicit declaration of function 'fileno' [-Werror=implicit-function-declaration]
int ttyin = isatty(fileno(stdin)), ttyout = isatty(fileno(stdout));
^
cc1: all warnings being treated as errors

@darix

This comment has been minimized.

Show comment
Hide comment
@darix

darix Mar 8, 2016

This would fix it ... you could also make it a -D_POSIX_SOURCE of course.

Index: jo-0.4/jo.c
===================================================================
--- jo-0.4.orig/jo.c
+++ jo-0.4/jo.c
@@ -1,3 +1,4 @@
+#define _POSIX_SOURCE
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>

darix commented Mar 8, 2016

This would fix it ... you could also make it a -D_POSIX_SOURCE of course.

Index: jo-0.4/jo.c
===================================================================
--- jo-0.4.orig/jo.c
+++ jo-0.4/jo.c
@@ -1,3 +1,4 @@
+#define _POSIX_SOURCE
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@darix

This comment has been minimized.

Show comment
Hide comment

darix commented Mar 8, 2016

@jpmens jpmens closed this in b8f1e12 Mar 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment