Fossil

Check-in [ccb4168616]
Login

Check-in [ccb4168616]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [0eeaa6224cdbdbda] so that it compiles on Windows. [forum:/forumpost/3fc7aad2a3|Forum post 3fc7aad2a3].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ccb416861656ce88e6302c241625eeaafe9d71a456e70d665a41e21e080836a2
User & Date: drh 2025-04-16 14:31:04.473
Context
2025-04-16
14:56
Make the systemd unit files a little easier to read in the www/server/debian/service.md document. ... (check-in: c2b56250c0 user: drh tags: trunk)
14:31
Fix [0eeaa6224cdbdbda] so that it compiles on Windows. [forum:/forumpost/3fc7aad2a3|Forum post 3fc7aad2a3]. ... (check-in: ccb4168616 user: drh tags: trunk)
12:02
Update the built-in SQLite to the latest trunk version, for testing. ... (check-in: d14a7803d7 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
2496
2497
2498
2499
2500
2501
2502

2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517

2518
2519
2520
2521
2522
2523
2524
    nHdr -= m+1;
  }
  fossil_free(zToFree);
  fgetc(g.httpIn);  /* Read past the "," separating header from content */
  cgi_init();
}


/*
** Change the listening socket, if necessary, so that it will accept both IPv4
** and IPv6
*/
static void allowBothIpV4andV6(int listener){
#if defined(IPV6_V6ONLY)
  int ipv6only = -1;
  socklen_t ipv6only_size = sizeof(ipv6only);
  getsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &ipv6only_size);
  if( ipv6only ){
    ipv6only = 0;
    setsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, ipv6only_size);
  }
#endif /* defined(IPV6_ONLY) */
}



#if INTERFACE
/*
** Bitmap values for the flags parameter to cgi_http_server().
*/
#define HTTP_SERVER_LOCALHOST      0x0001     /* Bind to 127.0.0.1 only */







>















>







2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
    nHdr -= m+1;
  }
  fossil_free(zToFree);
  fgetc(g.httpIn);  /* Read past the "," separating header from content */
  cgi_init();
}

#if !defined(_WIN32)
/*
** Change the listening socket, if necessary, so that it will accept both IPv4
** and IPv6
*/
static void allowBothIpV4andV6(int listener){
#if defined(IPV6_V6ONLY)
  int ipv6only = -1;
  socklen_t ipv6only_size = sizeof(ipv6only);
  getsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &ipv6only_size);
  if( ipv6only ){
    ipv6only = 0;
    setsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, ipv6only_size);
  }
#endif /* defined(IPV6_ONLY) */
}
#endif /* !defined(_WIN32) */


#if INTERFACE
/*
** Bitmap values for the flags parameter to cgi_http_server().
*/
#define HTTP_SERVER_LOCALHOST      0x0001     /* Bind to 127.0.0.1 only */