Skip to content

Commit

Permalink
Add feature test macro for fileno()
Browse files Browse the repository at this point in the history
Defining _XOPEN_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 25df677
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 _XOPEN_SOURCE

#include "opal_config.h"

#include <stdio.h>
Expand Down

0 comments on commit 25df677

Please sign in to comment.