netdb.h file for MPC8313ERDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

netdb.h file for MPC8313ERDB

1,259 Views
ak79
Contributor I
Hi,

  I have an application built on the PC which transmits data to a given IP. I am trying to port the same on to the MPC8313ERDB. I am unable to find the netdb.h file from the board source code. I am unable to perform some of the socket related functions. Is there a alternative/replacement for this netdb.h file??

Regards,
Ak79
Tags (1)
0 Kudos
1 Reply

623 Views
abartky
Contributor IV

Ak79,

On my Linux machine, the netdb.h file is under the same directory as all the other regular include files for compiling MPC8313E targeted linux apps.

Here is where I found it on my machine:

alan@raptor:/opt/mtwk/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/powerpc-linux/include$

ls net*.h

netdb.h

I also know that busybox uses netdb.h, so I'd assume it would be a standard install when LTIB is installed, but as I've recompiled busybox to add some options that were not in the default build of the MPC8313E Linux BSP, I guess there is a chance that the .h file is installed if you build busybox from the ./ltib --configure menu.

Hope this helps.

Cheers,

abartky

0 Kudos