diff --git a/ppu/include/arpa/inet.h b/ppu/include/arpa/inet.h index 04d55c48..58520f12 100644 --- a/ppu/include/arpa/inet.h +++ b/ppu/include/arpa/inet.h @@ -1,7 +1,6 @@ #ifndef __INET_H__ #define __INET_H__ -#include #include #define htonl(hostlong) (hostlong) diff --git a/ppu/include/net/net.h b/ppu/include/net/net.h index 63f6f2ef..fc396107 100644 --- a/ppu/include/net/net.h +++ b/ppu/include/net/net.h @@ -1,9 +1,13 @@ -#ifndef __LV2_NET_H__ -#define __LV2_NET_H__ +#ifndef __NET_H__ +#define __NET_H__ -#include -#include -#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif #define NET_EPERM 1 #define NET_ENOENT 2 @@ -103,10 +107,6 @@ #define net_errno (*netErrnoLoc()) #define net_h_errno (*netHErrnoLoc()) -#ifdef __cplusplus -extern "C" { -#endif - struct net_msghdr { u32 _pad0; diff --git a/ppu/include/net/netdb.h b/ppu/include/net/netdb.h deleted file mode 100644 index c010f627..00000000 --- a/ppu/include/net/netdb.h +++ /dev/null @@ -1,90 +0,0 @@ -#ifndef __NETDB_H__ -#define __NETDB_H__ - -#include - -#define NETDB_INTERNAL -1 -#define NETDB_SUCCESS 0x00 -#define HOST_NOT_FOUND 0x01 -#define TRY_AGAIN 0x02 -#define NO_RECOVERY 0x03 -#define NO_DATA 0x04 -#define NO_ADDRESS NO_DATA - -#define NI_MAXHOST 1025 -#define NI_MAXSERV 32 - -#define NI_NUMERICHOST 1 /* Don't try to look up hostname. */ -#define NI_NUMERICSERV 2 /* Don't convert port number to name. */ -#define NI_NOFQDN 4 /* Only return nodename portion. */ -#define NI_NAMEREQD 8 /* Don't return numeric addresses. */ -#define NI_DGRAM 16 /* Look up UDP service rather than TCP. */ -#define NI_IDN 32 /* Convert name from IDN format. */ -#define NI_IDN_ALLOW_UNASSIGNED 64 /* Don't reject unassigned Unicode - code points. */ -#define NI_IDN_USE_STD3_ASCII_RULES 128 /* Validate strings according to - STD3 rules. */ -/* Possible values for `ai_flags' field in `addrinfo' structure. */ -#define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */ -#define AI_CANONNAME 0x0002 /* Request for canonical name. */ -#define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */ -#define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */ -#define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */ -#define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose - returned address type.. */ -#define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded - in the current locale's character set) - before looking it up. */ -#define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */ -#define AI_IDN_ALLOW_UNASSIGNED 0x0100 /* Don't reject unassigned Unicode - code points. */ -#define AI_IDN_USE_STD3_ASCII_RULES 0x0200 /* Validate strings according to - STD3 rules. */ - -extern int h_errno; - -#ifdef __cplusplus -extern "C" { -#endif - -struct hostent -{ - char *h_name; - char **h_aliases; - int h_addrtype; - int h_length; - char **h_addr_list; - #define h_addr h_addr_list[0] -}; - - -struct servent -{ - char *s_name; /* Official service name. */ - char **s_aliases; /* Alias list. */ - int s_port; /* Port number. */ - char *s_proto; /* Protocol to use. */ -}; - -/* Structure to contain information about address of a service provider. */ -struct addrinfo -{ - int ai_flags; /* Input flags. */ - int ai_family; /* Protocol family for socket. */ - int ai_socktype; /* Socket type. */ - int ai_protocol; /* Protocol for socket. */ - socklen_t ai_addrlen; /* Length of socket address. */ - struct sockaddr *ai_addr; /* Socket address for socket. */ - char *ai_canonname; /* Canonical name for service location. */ - struct addrinfo *ai_next; /* Pointer to next in list. */ -}; - -struct hostent* gethostbyaddr(const char *addr,socklen_t len,int tpye); -struct hostent* gethostbyname(const char *name); -struct servent *getservbyport(int port, const char *proto); - -#ifdef __cplusplus - } -#endif - -#endif diff --git a/ppu/include/net/select.h b/ppu/include/net/select.h deleted file mode 100644 index 0e65447e..00000000 --- a/ppu/include/net/select.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef __SELECT_H__ -#define __SELECT_H__ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef unsigned int _net_fd_mask; - -typedef struct _net_fd_set { - _net_fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; -} _net_fd_set; - -#undef fd_set -#define fd_set _net_fd_set - -int select(int, fd_set*, fd_set*, fd_set*, struct timeval*); -int pselect(int, fd_set*, fd_set*, fd_set*, const struct timespec*, const sigset_t*); - -#ifdef __cplusplus - } -#endif - -#endif diff --git a/ppu/include/net/socket.h b/ppu/include/net/socket.h deleted file mode 100644 index fbf688bc..00000000 --- a/ppu/include/net/socket.h +++ /dev/null @@ -1,121 +0,0 @@ -#ifndef __SOCKET_H__ -#define __SOCKET_H__ - -#include // for ssize_t -#include - -typedef u32 socklen_t; -typedef u8 sa_family_t; - -struct sockaddr -{ - u8 sa_len; - sa_family_t sa_family; - char sa_data[]; -}; - -struct iovec -{ - void* iov_base; - size_t iov_len; -}; - -struct msghdr -{ - void* msg_name; - socklen_t msg_namelen; - struct iovec* msg_iov; - int msg_iovlen; - void* msg_control; - socklen_t msg_controllen; - int msg_flags; -}; - -struct cmsghdr -{ - socklen_t cmsg_len; - int cmsg_level; - int cmsg_type; -}; - -struct linger -{ - int l_onoff; - int l_linger; -}; - -#define SOCK_STREAM 0x0001 -#define SOCK_DGRAM 0x0002 -#define SOCK_RAW 0x0003 - -#define SOL_SOCKET 0xFFFF - -#define SO_REUSEADDR 0x0004 -#define SO_KEEPALIVE 0x0008 -#define SO_BROADCAST 0x0020 -#define SO_LINGER 0x0080 -#define SO_OOBINLINE 0x0100 -#define SO_REUSEPORT 0x0200 -#define SO_SNDBUF 0x1001 -#define SO_RCVBUF 0x1002 -#define SO_SNDLOWAT 0x1003 -#define SO_RCVLOWAT 0x1004 -#define SO_SNDTIMEO 0x1005 -#define SO_RCVTIMEO 0x1006 -#define SO_ERROR 0x1007 -#define SO_TYPE 0x1008 -#define SO_NBIO 0x1100 - -#define MSG_OOB 0x0001 -#define MSG_PEEK 0x0002 -#define MSG_DONTROUTE 0x0004 -#define MSG_EOR 0x0008 -#define MSG_TRUNC 0x0010 -#define MSG_CTRUNC 0x0020 -#define MSG_WAITALL 0x0040 -#define MSG_DONTWAIT 0x0080 -#define MSG_BCAST 0x0100 -#define MSG_MCAST 0x0200 - -#define AF_UNSPEC 0x0000 -#define AF_UNIX 0x0001 -#define AF_INET 0x0002 -#define AF_INET6 0x0018 -#define AF_MAX 0x0020 - -#define SHUT_RD 0x0000 -#define SHUT_WR 0x0001 -#define SHUT_RDWR 0x0002 - -#define PF_INET AF_INET -#define PF_INET6 AF_INET6 - -#define SOCKET_FD_MASK 0x40000000 - -#ifdef __cplusplus -extern "C" { -#endif - -int accept(int socket, struct sockaddr* address, socklen_t* address_len); -int bind(int socket, const struct sockaddr* address, socklen_t address_len); -int connect(int socket, const struct sockaddr* address, socklen_t address_len); -int getpeername(int socket, struct sockaddr* address, socklen_t* address_len); -int getsockname(int socket, struct sockaddr* address, socklen_t* address_len); -int getsockopt(int socket, int level, int option_name, void* option_value,socklen_t* option_len); -int listen(int socket, int backlog); -ssize_t recv(int socket, void* buffer, size_t length, int flags); -ssize_t recvfrom(int socket, void* buffer, size_t length, int flags,struct sockaddr* from, socklen_t* fromlen); -ssize_t recvmsg(int socket, struct msghdr* message, int flags); -ssize_t send(int socket, const void* message, size_t length, int flags); -ssize_t sendto(int socket, const void* message, size_t length, int flags,const struct sockaddr* dest_addr, socklen_t dest_len); -ssize_t sendmsg(int socket, const struct msghdr* message, int flags); -int setsockopt(int socket, int level, int option_name, const void* option_value,socklen_t option_len); -int shutdown(int socket, int how); -int socket(int domain, int type, int protocol); -int socketpair(int domain, int type, int protocol, int socket_vector[2]); - -#ifdef __cplusplus - } -#endif - -#endif diff --git a/ppu/include/netdb.h b/ppu/include/netdb.h index 159c8973..c0158e74 100644 --- a/ppu/include/netdb.h +++ b/ppu/include/netdb.h @@ -1 +1,90 @@ -#include +#ifndef __NETDB_H__ +#define __NETDB_H__ + +#include + +#define NETDB_INTERNAL -1 +#define NETDB_SUCCESS 0x00 +#define HOST_NOT_FOUND 0x01 +#define TRY_AGAIN 0x02 +#define NO_RECOVERY 0x03 +#define NO_DATA 0x04 +#define NO_ADDRESS NO_DATA + +#define NI_MAXHOST 1025 +#define NI_MAXSERV 32 + +#define NI_NUMERICHOST 1 /* Don't try to look up hostname. */ +#define NI_NUMERICSERV 2 /* Don't convert port number to name. */ +#define NI_NOFQDN 4 /* Only return nodename portion. */ +#define NI_NAMEREQD 8 /* Don't return numeric addresses. */ +#define NI_DGRAM 16 /* Look up UDP service rather than TCP. */ +#define NI_IDN 32 /* Convert name from IDN format. */ +#define NI_IDN_ALLOW_UNASSIGNED 64 /* Don't reject unassigned Unicode + code points. */ +#define NI_IDN_USE_STD3_ASCII_RULES 128 /* Validate strings according to + STD3 rules. */ +/* Possible values for `ai_flags' field in `addrinfo' structure. */ +#define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */ +#define AI_CANONNAME 0x0002 /* Request for canonical name. */ +#define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */ +#define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */ +#define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */ +#define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose + returned address type.. */ +#define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded + in the current locale's character set) + before looking it up. */ +#define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */ +#define AI_IDN_ALLOW_UNASSIGNED 0x0100 /* Don't reject unassigned Unicode + code points. */ +#define AI_IDN_USE_STD3_ASCII_RULES 0x0200 /* Validate strings according to + STD3 rules. */ + +extern int h_errno; + +struct hostent +{ + char *h_name; + char **h_aliases; + int h_addrtype; + int h_length; + char **h_addr_list; + #define h_addr h_addr_list[0] +}; + + +struct servent +{ + char *s_name; /* Official service name. */ + char **s_aliases; /* Alias list. */ + int s_port; /* Port number. */ + char *s_proto; /* Protocol to use. */ +}; + +/* Structure to contain information about address of a service provider. */ +struct addrinfo +{ + int ai_flags; /* Input flags. */ + int ai_family; /* Protocol family for socket. */ + int ai_socktype; /* Socket type. */ + int ai_protocol; /* Protocol for socket. */ + socklen_t ai_addrlen; /* Length of socket address. */ + struct sockaddr *ai_addr; /* Socket address for socket. */ + char *ai_canonname; /* Canonical name for service location. */ + struct addrinfo *ai_next; /* Pointer to next in list. */ +}; + +#ifdef __cplusplus +extern "C" { +#endif + +struct hostent* gethostbyaddr(const char *addr,socklen_t len,int tpye); +struct hostent* gethostbyname(const char *name); +struct servent *getservbyport(int port, const char *proto); + +#ifdef __cplusplus + } +#endif + +#endif diff --git a/ppu/include/netinet/in.h b/ppu/include/netinet/in.h index 1bf37410..b1c3bbc7 100644 --- a/ppu/include/netinet/in.h +++ b/ppu/include/netinet/in.h @@ -1,9 +1,8 @@ #ifndef __IN_H__ #define __IN_H__ +#include #include -#include - #define IPPROTO_IP 0x00 #define IPPROTO_ICMP 0x01 @@ -88,7 +87,4 @@ struct ip_mreq struct in_addr imr_interface; }; - -#include - #endif diff --git a/ppu/include/net/poll.h b/ppu/include/sys/poll.h similarity index 100% rename from ppu/include/net/poll.h rename to ppu/include/sys/poll.h index 186dff2e..1b2b281a 100644 --- a/ppu/include/net/poll.h +++ b/ppu/include/sys/poll.h @@ -12,10 +12,6 @@ #define POLLWRBAND 0x0100 #define POLLOUT POLLWRNORM -#ifdef __cplusplus -extern "C" { -#endif - typedef unsigned int nfds_t; struct pollfd { @@ -24,6 +20,10 @@ struct pollfd { short revents; }; +#ifdef __cplusplus +extern "C" { +#endif + int poll(struct pollfd fds[],nfds_t nfds,int timeout); #ifdef __cplusplus diff --git a/ppu/include/sys/select.h b/ppu/include/sys/select.h index 4da549cc..c3c2b6f6 100644 --- a/ppu/include/sys/select.h +++ b/ppu/include/sys/select.h @@ -1 +1,29 @@ -#include +#ifndef __SELECT_H__ +#define __SELECT_H__ + +#include +#include +#include +#include + +typedef unsigned int _net_fd_mask; + +typedef struct _net_fd_set { + _net_fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; +} _net_fd_set; + +#undef fd_set +#define fd_set _net_fd_set + +#ifdef __cplusplus +extern "C" { +#endif + +int select(int, fd_set*, fd_set*, fd_set*, struct timeval*); +int pselect(int, fd_set*, fd_set*, fd_set*, const struct timespec*, const sigset_t*); + +#ifdef __cplusplus + } +#endif + +#endif diff --git a/ppu/include/sys/socket.h b/ppu/include/sys/socket.h index 5c373dde..5729e9bb 100644 --- a/ppu/include/sys/socket.h +++ b/ppu/include/sys/socket.h @@ -1,70 +1,118 @@ /*! \file socket.h \brief Socket management functions. */ - #ifndef __SYS_SOCKET_H__ #define __SYS_SOCKET_H__ -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif +typedef u32 socklen_t; +typedef u8 sa_family_t; -LV2_SYSCALL sysNetAccept(int socket,const struct sockaddr *addr,socklen_t *addr_len) +struct sockaddr { - lv2syscall3(700,socket,(u64)addr,(u64)addr_len); - return_to_user_prog(s32); -} + u8 sa_len; + sa_family_t sa_family; + char sa_data[]; +}; -LV2_SYSCALL sysNetBind(int socket,const struct sockaddr *addr,socklen_t addr_len) +struct iovec { - lv2syscall3(701,socket,(u64)addr,addr_len); - return_to_user_prog(s32); -} + void* iov_base; + size_t iov_len; +}; -LV2_SYSCALL sysNetConnect(int socket,const struct sockaddr *addr,socklen_t addr_len) +struct msghdr { - lv2syscall3(702,socket,(u64)addr,addr_len); - return_to_user_prog(s32); -} + void* msg_name; + socklen_t msg_namelen; + struct iovec* msg_iov; + int msg_iovlen; + void* msg_control; + socklen_t msg_controllen; + int msg_flags; +}; -LV2_SYSCALL sysNetListen(int socket,int backlog) +struct cmsghdr { - lv2syscall2(706,socket,backlog); - return_to_user_prog(s32); -} + socklen_t cmsg_len; + int cmsg_level; + int cmsg_type; +}; -LV2_SYSCALL sysNetRecvfrom(int socket,void *buffer,size_t len,int flags,const struct sockaddr *addr,socklen_t *addr_len) +struct linger { - lv2syscall6(707,socket,(u64)buffer,len,flags,(u64)addr,(u64)addr_len); - return_to_user_prog(s32); -} + int l_onoff; + int l_linger; +}; -LV2_SYSCALL sysNetSendto(int socket,const void *message,size_t len,int flags,const struct sockaddr *addr,socklen_t addr_len) -{ - lv2syscall6(710,socket,(u64)message,len,flags,(u64)addr,addr_len); - return_to_user_prog(s32); -} +#define SOCK_STREAM 0x0001 +#define SOCK_DGRAM 0x0002 +#define SOCK_RAW 0x0003 -LV2_SYSCALL sysNetShutdown(int socket,int how) -{ - lv2syscall2(712,socket,how); - return_to_user_prog(s32); -} +#define SOL_SOCKET 0xFFFF -LV2_SYSCALL sysNetSocket(int domain,int type,int protocol) -{ - lv2syscall3(713,domain,type,protocol); - return_to_user_prog(s32); -} +#define SO_REUSEADDR 0x0004 +#define SO_KEEPALIVE 0x0008 +#define SO_BROADCAST 0x0020 +#define SO_LINGER 0x0080 +#define SO_OOBINLINE 0x0100 +#define SO_REUSEPORT 0x0200 +#define SO_SNDBUF 0x1001 +#define SO_RCVBUF 0x1002 +#define SO_SNDLOWAT 0x1003 +#define SO_RCVLOWAT 0x1004 +#define SO_SNDTIMEO 0x1005 +#define SO_RCVTIMEO 0x1006 +#define SO_ERROR 0x1007 +#define SO_TYPE 0x1008 +#define SO_NBIO 0x1100 -LV2_SYSCALL sysNetClose(int socket) -{ - lv2syscall1(714,socket); - return_to_user_prog(s32); -} +#define MSG_OOB 0x0001 +#define MSG_PEEK 0x0002 +#define MSG_DONTROUTE 0x0004 +#define MSG_EOR 0x0008 +#define MSG_TRUNC 0x0010 +#define MSG_CTRUNC 0x0020 +#define MSG_WAITALL 0x0040 +#define MSG_DONTWAIT 0x0080 +#define MSG_BCAST 0x0100 +#define MSG_MCAST 0x0200 + +#define AF_UNSPEC 0x0000 +#define AF_UNIX 0x0001 +#define AF_INET 0x0002 +#define AF_INET6 0x0018 +#define AF_MAX 0x0020 + +#define SHUT_RD 0x0000 +#define SHUT_WR 0x0001 +#define SHUT_RDWR 0x0002 + +#define PF_INET AF_INET +#define PF_INET6 AF_INET6 + +#define SOCKET_FD_MASK 0x40000000 + +#ifdef __cplusplus +extern "C" { +#endif + +int accept(int socket, struct sockaddr* address, socklen_t* address_len); +int bind(int socket, const struct sockaddr* address, socklen_t address_len); +int connect(int socket, const struct sockaddr* address, socklen_t address_len); +int getpeername(int socket, struct sockaddr* address, socklen_t* address_len); +int getsockname(int socket, struct sockaddr* address, socklen_t* address_len); +int getsockopt(int socket, int level, int option_name, void* option_value,socklen_t* option_len); +int listen(int socket, int backlog); +ssize_t recv(int socket, void* buffer, size_t length, int flags); +ssize_t recvfrom(int socket, void* buffer, size_t length, int flags,struct sockaddr* from, socklen_t* fromlen); +ssize_t recvmsg(int socket, struct msghdr* message, int flags); +ssize_t send(int socket, const void* message, size_t length, int flags); +ssize_t sendto(int socket, const void* message, size_t length, int flags,const struct sockaddr* dest_addr, socklen_t dest_len); +ssize_t sendmsg(int socket, const struct msghdr* message, int flags); +int setsockopt(int socket, int level, int option_name, const void* option_value,socklen_t option_len); +int shutdown(int socket, int how); +int socket(int domain, int type, int protocol); +int socketpair(int domain, int type, int protocol, int socket_vector[2]); #ifdef __cplusplus } diff --git a/ppu/include/sysutil/sysnet.h b/ppu/include/sysutil/sysnet.h new file mode 100644 index 00000000..b9b12658 --- /dev/null +++ b/ppu/include/sysutil/sysnet.h @@ -0,0 +1,61 @@ +#ifndef __SYS_NET_H__ +#define __SYS_NET_H__ + +#include +#include + +LV2_SYSCALL sysNetAccept(int socket,const struct sockaddr *addr,socklen_t *addr_len) +{ + lv2syscall3(700,socket,(u64)addr,(u64)addr_len); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetBind(int socket,const struct sockaddr *addr,socklen_t addr_len) +{ + lv2syscall3(701,socket,(u64)addr,addr_len); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetConnect(int socket,const struct sockaddr *addr,socklen_t addr_len) +{ + lv2syscall3(702,socket,(u64)addr,addr_len); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetListen(int socket,int backlog) +{ + lv2syscall2(706,socket,backlog); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetRecvfrom(int socket,void *buffer,size_t len,int flags,const struct sockaddr *addr,socklen_t *addr_len) +{ + lv2syscall6(707,socket,(u64)buffer,len,flags,(u64)addr,(u64)addr_len); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetSendto(int socket,const void *message,size_t len,int flags,const struct sockaddr *addr,socklen_t addr_len) +{ + lv2syscall6(710,socket,(u64)message,len,flags,(u64)addr,addr_len); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetShutdown(int socket,int how) +{ + lv2syscall2(712,socket,how); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetSocket(int domain,int type,int protocol) +{ + lv2syscall3(713,domain,type,protocol); + return_to_user_prog(s32); +} + +LV2_SYSCALL sysNetClose(int socket) +{ + lv2syscall1(714,socket); + return_to_user_prog(s32); +} + +#endif \ No newline at end of file diff --git a/ppu/librt/read.c b/ppu/librt/read.c index 2b6d5870..382f30f3 100644 --- a/ppu/librt/read.c +++ b/ppu/librt/read.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include diff --git a/ppu/librt/socket.c b/ppu/librt/socket.c index ec967e2f..5f158657 100644 --- a/ppu/librt/socket.c +++ b/ppu/librt/socket.c @@ -4,8 +4,8 @@ #include #include -#include -#include +#include +#include #include #include diff --git a/ppu/librt/write.c b/ppu/librt/write.c index f8dfcaa8..5d3bd3ab 100644 --- a/ppu/librt/write.c +++ b/ppu/librt/write.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include diff --git a/ppu/sprx/libnet/socket.c b/ppu/sprx/libnet/socket.c index 3ba13f37..e53f4ad5 100644 --- a/ppu/sprx/libnet/socket.c +++ b/ppu/sprx/libnet/socket.c @@ -8,9 +8,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include diff --git a/ppu_rules b/ppu_rules index c14c8e69..12cdd6a5 100644 --- a/ppu_rules +++ b/ppu_rules @@ -10,7 +10,7 @@ export PATH := $(PS3DEV)/bin:$(PS3DEV)/ppu/bin:$(PATH) export PORTLIBS := $(PS3DEV)/portlibs/ppu -export LIBPSL1GHT_INC := -I$(PSL1GHT)/ppu/include -I$(PSL1GHT)/ppu/include/simdmath +export LIBPSL1GHT_INC := -I$(PSL1GHT)/ppu/include -I$(PSL1GHT)/ppu/include/simdmath -I$(PSL1GHT)/ppu/include/sys export LIBPSL1GHT_LIB := -L$(PSL1GHT)/ppu/lib PREFIX := ppu- diff --git a/samples/network/ps3load/source/main.c b/samples/network/ps3load/source/main.c index 7ed6c9af..94bc2b15 100644 --- a/samples/network/ps3load/source/main.c +++ b/samples/network/ps3load/source/main.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include