summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd_types.defs5
1 files changed, 2 insertions, 3 deletions
diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs
index 4c01e639..5fa59f34 100644
--- a/hurd/hurd_types.defs
+++ b/hurd/hurd_types.defs
@@ -18,6 +18,7 @@ along with the GNU Hurd; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef HURD_SERVER
/* The Hurd uses protected payloads to quickly look up the object
receiving a message. Looking up objects is optimized at the cost
of having to translate payloads back to port names if the server
@@ -42,10 +43,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef HURD_DEFAULT_PAYLOAD_TO_PORT
#endif
#else
-/* Ideally we would include this here, to make sure ports_payload_get_name gets
- declared, but this leads to an inclusion loop via hurd/signal.h
import <hurd/ports.h>;
- */
#define HURD_DEFAULT_PAYLOAD_TO_PORT ports_payload_get_name
#endif
@@ -55,6 +53,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef HURD_DEFAULT_PAYLOAD_TO_PORT
#define MACH_PAYLOAD_TO_PORT HURD_DEFAULT_PAYLOAD_TO_PORT
#endif
+#endif /* HURD_SERVER */
#include <mach/std_types.defs>
#include <mach/mach_types.defs>