aboutsummaryrefslogtreecommitdiff
path: root/include/pwrap_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pwrap_compat.h')
-rw-r--r--include/pwrap_compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pwrap_compat.h b/include/pwrap_compat.h
index 45d7885..a30df15 100644
--- a/include/pwrap_compat.h
+++ b/include/pwrap_compat.h
@@ -16,7 +16,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_OPENPAM
+#include <security/openpam.h>
+#endif
+
/* OpenPAM doesn't define PAM_BAD_ITEM */
#ifndef PAM_BAD_ITEM
#define PAM_BAD_ITEM PAM_SYSTEM_ERR
#endif /* PAM_BAD_ITEM */
+
+#ifndef ENODATA
+#define ENODATA EPIPE
+#endif