Commit fbedc55a authored by claes's avatar claes

Precompilation directives if support for POSIX message queues

parent ad8fe783
/*
* Proview $Id: rt_errl.c,v 1.5 2005-09-01 14:57:57 claes Exp $
* Proview $Id: rt_errl.c,v 1.6 2006-01-25 14:34:31 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -27,10 +27,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "rt_mq.h"
#include <unistd.h>
#if defined _POSIX_MESSAGE_PASSING
# include <mqueue.h>
#else
# include "rt_mq.h"
#endif
#include <limits.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/time.h>
#include "rt_errl.h"
......
/*
* Proview $Id: rt_errl.h,v 1.4 2005-09-01 14:57:55 claes Exp $
* Proview $Id: rt_errl.h,v 1.5 2006-01-25 14:35:22 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -24,10 +24,15 @@
# include "pwr.h"
#endif
#include <unistd.h>
#if defined OS_LYNX
# define LOG_QUEUE_NAME "/pwrlogqueue"
#elif defined OS_LINUX
# define LOG_QUEUE_NAME "/tmp/pwrlogqueue"
# if defined _POSIX_MESSAGE_PASSING
# define LOG_QUEUE_NAME "/pwrlogqueue"
# else
# define LOG_QUEUE_NAME "/tmp/pwrlogqueue"
# endif
#elif defined OS_ELN
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment