Skip to content

Commit

Permalink
Set _POSIX_C_SOURCE in YAZ own config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdickmeiss committed Jan 27, 2025
1 parent 659a59f commit b151f2a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-minimal-yaz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: ./buildconf.sh
- name: Run configure without xml, icu, ...
run: >
CFLAGS="-g -Wall -std=c89 -D_POSIX_C_SOURCE=200112L" ./configure
CFLAGS="-g -Wall -std=c89" ./configure
--without-xml2 --without-icu --disable-tcpd --without-memcached --without-redis
- name: Run Make check
run: make -j4 check
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([1.9 subdir-objects])
dnl
AC_DEFINE([_POSIX_C_SOURCE],[200809L],[Enable POSIX])
AC_SUBST([READLINE_LIBS])
AC_SUBST([YAZ_CONF_CFLAGS])
dnl ------ Checking programs
Expand Down
2 changes: 1 addition & 1 deletion src/yaz/errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#ifndef YAZ_ERRNO_H
#define YAZ_ERRNO_H

#include <stddef.h>
#include <yaz/yconfig.h>
#include <stddef.h>

YAZ_BEGIN_CDECL

Expand Down
1 change: 0 additions & 1 deletion src/yaz/yconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
# ifndef O_BINARY
# define O_BINARY 0
# endif
#define _POSIX_C_SOURCE 200809L
#endif

#ifdef __cplusplus
Expand Down

0 comments on commit b151f2a

Please sign in to comment.