From 6f8a7c6281e52a57946ac75c80b8bff1c744bb7c Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 17 Dec 2009 22:40:51 +0000 Subject: If msg size==0, disable POSIX msg queues git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2380 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/tools/mkconfig.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c index 3a9eda8a4..efaa29a21 100644 --- a/nuttx/tools/mkconfig.c +++ b/nuttx/tools/mkconfig.c @@ -288,6 +288,12 @@ int main(int argc, char **argv, char **envp) printf("# undef CONFIG_STDIO_BUFFER_SIZE\n"); printf("# define CONFIG_STDIO_BUFFER_SIZE 0\n"); printf("#endif\n\n"); + printf("/* If the maximum message size is zero, then we assume that message queues\n"); + printf(" * support should be disabled\n"); + printf(" */\n\n"); + printf("#if CONFIG_MQ_MAXMSGSIZE <= 0 && !defined(CONFIG_DISABLE_MQUEUE)\n"); + printf("# define CONFIG_DISABLE_MQUEUE 1\n"); + printf("#endif\n\n"); printf("/* If mountpoint support in not included, then no filesystem can be supported */\n\n"); printf("#ifdef CONFIG_DISABLE_MOUNTPOINT\n"); printf("# undef CONFIG_FS_FAT\n"); -- cgit v1.2.3