]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fd: rm struct rlimit definition
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 10 Jul 2024 10:35:56 +0000 (12:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Jul 2024 16:05:48 +0000 (18:05 +0200)
As raise_rlim_nofile() was moved to limits compilation unit, limits.h includes
the system <sys/resource.h>. So, this definition of rlimit system type
structure is no longer need for compilation of fd unit.

include/haproxy/fd.h

index 7b8e8997b20ea55372176b25530aee5ddb6a7371..4ea24975bcd7752b5e6f14d62869fba4f442f958 100644 (file)
@@ -81,8 +81,6 @@ ssize_t fd_write_frag_line(int fd, size_t maxlen, const struct ist pfx[], size_t
 /* close all FDs starting from <start> */
 void my_closefrom(int start);
 
-struct rlimit;
-
 int compute_poll_timeout(int next);
 void fd_leaving_poll(int wait_time, int status);