Skip to content

Commit

Permalink
Export REPROC_INFINITE and reproc::infinite to avoid undefined refere…
Browse files Browse the repository at this point in the history
…nce errors when using reproc as a shared library
  • Loading branch information
DaanDeMeyer committed Nov 2, 2018
1 parent 150fc0c commit 2c4a41c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/reproc++/reproc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum class stream {
};

/*! \see REPROC_INFINITE */
extern const unsigned int infinite;
REPROC_EXPORT extern const unsigned int infinite;

/*! \see REPROC_CLEANUP */
enum class cleanup {
Expand Down
2 changes: 1 addition & 1 deletion include/reproc/reproc.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ typedef enum {
} REPROC_CLEANUP;

/*! Tells a function that takes a timeout value to wait indefinitely. */
extern const unsigned int REPROC_INFINITE;
REPROC_EXPORT extern const unsigned int REPROC_INFINITE;

/*!
Starts the process specified by \p argv in the given working directory and
Expand Down
2 changes: 1 addition & 1 deletion src/reproc/common/infinite.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include "reproc/reproc.h"

const unsigned int REPROC_INFINITE = 0xFFFFFFFF;
const unsigned int REPROC_INFINITE = 0xFFFFFFFF;

0 comments on commit 2c4a41c

Please sign in to comment.