vivekian <(E-Mail Removed)> wrote:
> Hi,
> Have a simple socket program running in linux where a snippet has :
> if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(int)) ==
> -1) {
> perror("setsockopt");
> exit(1);
> }
> This fails to compile ; the error being
> SO_REUSEPORT' undeclared (first use in this function)
> Is there something wrong here ?
> grep SO_REUSEPORT /usr/include/*/*
/usr/include/asm/socket.h:/* To add :#define SO_REUSEPORT 15 */
--
Uwe Bonnes
(E-Mail Removed)
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------