erl_error.h include missing from ei_connect.h

Vance Shipley <>
Wed Jul 9 01:41:53 CEST 2003


I'm having to include erl_error.h in my code to pull in the
definitions for erl_err_ret() et. el. however I otherwise
only need to include ei_connect.h.  Looking at ei_connect.h
I see that erl_error.h is included only if using VxWorks.

I believe it should always be included.

	-Vance

Vance Shipley
Motivity Telecom Inc.
+1 519 240 3684




*** ei_connect.h.dist   Tue Jul  8 19:35:56 2003
--- ei_connect.h        Tue Jul  8 19:41:17 2003
***************
*** 53,63 ****
  #include <netinet/in.h>
  #include <netinet/tcp.h> 
  #include <timers.h> 
  
  /* #include "netdb.h" */ /* local file */
- #include "erl_error.h"
  
  #define getpid() taskIdSelf()
  extern int h_errno;
  
  #else /* some other unix */
--- 53,62 ----
***************
*** 76,85 ****
--- 75,85 ----
  
  #ifdef HAVE_CONFIG_H
  # include "config.h"        /* FIXME: Autoconf Info prefers <config.h> */
  #endif
  
+ #include "erl_error.h"
  #include "ei.h"
  
  #define SMALLBUF 2048
  
  #define DEFBUF_SIZ 100




More information about the erlang-patches mailing list