Skip to content

Commit

Permalink
Add feature test macro for fileno()
Browse files Browse the repository at this point in the history
Defining _POSIX_C_SOURCE is required for POSIX fileno() to become
available.

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Jul 9, 2024
1 parent f64f37b commit ab7724c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opal/util/keyval/keyval_lex.l
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
* $HEADER$
*/

// needed for fileno()
#define _POSIX_C_SOURCE 200809L

#include "opal_config.h"

#include <stdio.h>
Expand Down

0 comments on commit ab7724c

Please sign in to comment.