[Axl] [PATCH] To build on VxWorks

ちとらけんすけ chitora48 at gmail.com
Wed Jan 16 11:08:35 CET 2013


I succeeded to run the Vortex library on VxWorks 6.8 operating system and
it is working fine.
At first, we need to patch the Axl library like below to compile on VxWorks
The third parameter "0" for "open" might be ignored with O_RDONLY but it
needs for compiling on VxWorks.
Later I will send my patches for Vortex library to the Vortex mailing list.

diff --git a/axl/src/axl_stream.c b/axl/src/axl_stream.c
index f313c6f..628321e 100644
--- a/axl/src/axl_stream.c
+++ b/axl/src/axl_stream.c
@@ -536,7 +536,7 @@ axlStream * axl_stream_new (const char * stream_source,
int stream_size,
  if (file_path != NULL || (fd_handler > 0)) {
  if (fd_handler < 0) {
  /* a file handle */
- if ((fd = open (file_path, O_RDONLY)) < 0) {
+ if ((fd = open (file_path, O_RDONLY, 0)) < 0) {
  axl_log (LOG_DOMAIN, AXL_LEVEL_CRITICAL, "unable to open file a the
location provided: %s, check location and permissions.", file_path);

  axl_error_new (-1, "unable to read file provided", NULL, error);

FYI, My axl_config.h settings for VxWorks are:
#undef AXL_OS_UNIX
#define AXL_OS_VXWORKS (1)

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aspl.es/pipermail/axl/attachments/20130116/60a169a5/attachment.html>

More information about the Axl mailing list