Skip to content

Commit efce8cc

Browse files
committed
pmix2x/pmix: add missing include files
pmix cannot be built on alpine linux because of some missing includes. uid_t and gid_t are defined in unistd.h or sys/types.h, and unistd.h is not indirectly pulled under alpine linux, so do it manually. Thanks N.L.K Nguyen for the report (back-ported from upstream openpmix/openpmix@c8d5535)
1 parent feaf020 commit efce8cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

opal/mca/pmix/pmix2x/pmix/include/pmix/pmix_common.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved
4+
* Copyright (c) 2016 Research Organization for Information Science
5+
* and Technology (RIST). All rights reserved.
46
*
57
* Redistribution and use in source and binary forms, with or without
68
* modification, are permitted provided that the following conditions are
@@ -59,6 +61,12 @@
5961
#ifdef HAVE_SYS_TIME_H
6062
#include <sys/time.h> /* for struct timeval */
6163
#endif
64+
#ifdef HAVE_UNISTD_H
65+
#include <unistd.h> /* for uid_t and gid_t */
66+
#endif
67+
#ifdef HAVE_SYS_TYPES_H
68+
#include <sys/types.h> /* for uid_t and gid_t */
69+
#endif
6270

6371
BEGIN_C_DECLS
6472

0 commit comments

Comments
 (0)