Skip to content
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
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ AC_LINK_IFELSE(
)
AC_CHECK_FUNCS([pthread_yield pthread_setname_np])

AC_CHECK_DECLS([optreset], [], [], [[#include <unistd.h>]])

AC_ARG_ENABLE(docs,
AS_HELP_STRING([--enable-docs],[enable generation of documentation]),
[ENABLE_DOCS=${enableval}], [ENABLE_DOCS=no])
Expand Down
6 changes: 4 additions & 2 deletions src/librtpp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <unistd.h>

#include "config.h"

#include "librtpproxy.h"
#include "librtpp_main.h"

Expand All @@ -38,8 +40,8 @@ struct opt_save {
int optreset;
};

#if defined(__linux__)
static int optreset; /* Not present in linux */
#if !HAVE_DECL_OPTRESET
static int optreset; /* Not present in glibc */
#endif

#define OPT_SAVE(sp) (*(sp) = (struct opt_save){optarg, optind, optopt, opterr, optreset})
Expand Down