Skip to content

Commit be7fd28

Browse files
committed
musl: Define SOCK_SEQPACKET in common place
This define is not architecture specific in musl [1] [1] https://git.musl-libc.org/cgit/musl/tree/include/sys/socket.h#n90 Signed-off-by: Khem Raj <[email protected]>
1 parent a74f699 commit be7fd28

File tree

7 files changed

+1
-7
lines changed

7 files changed

+1
-7
lines changed

src/unix/linux_like/linux/musl/b32/arm/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ pub const MAP_SYNC: ::c_int = 0x080000;
324324

325325
pub const SOCK_STREAM: ::c_int = 1;
326326
pub const SOCK_DGRAM: ::c_int = 2;
327-
pub const SOCK_SEQPACKET: ::c_int = 5;
328327

329328
pub const EDEADLK: ::c_int = 35;
330329
pub const ENAMETOOLONG: ::c_int = 36;

src/unix/linux_like/linux/musl/b32/hexagon.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ pub const SIG_SETMASK: ::c_int = 2; // FIXME check these
292292
pub const SIG_BLOCK: ::c_int = 0x000000;
293293
pub const SIG_UNBLOCK: ::c_int = 0x01;
294294
pub const SOCK_DGRAM: ::c_int = 2;
295-
pub const SOCK_SEQPACKET: ::c_int = 5;
296295
pub const SOCK_STREAM: ::c_int = 1;
297296
pub const SOL_CAIF: ::c_int = 278;
298297
pub const SOL_IUCV: ::c_int = 277;

src/unix/linux_like/linux/musl/b32/mips/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ pub const ERFKILL: ::c_int = 167;
349349

350350
pub const SOCK_STREAM: ::c_int = 2;
351351
pub const SOCK_DGRAM: ::c_int = 1;
352-
pub const SOCK_SEQPACKET: ::c_int = 5;
353352

354353
pub const SA_ONSTACK: ::c_int = 0x08000000;
355354
pub const SA_SIGINFO: ::c_int = 8;

src/unix/linux_like/linux/musl/b32/powerpc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ pub const MAP_SYNC: ::c_int = 0x080000;
257257

258258
pub const SOCK_STREAM: ::c_int = 1;
259259
pub const SOCK_DGRAM: ::c_int = 2;
260-
pub const SOCK_SEQPACKET: ::c_int = 5;
261260

262261
pub const EDEADLK: ::c_int = 35;
263262
pub const ENAMETOOLONG: ::c_int = 36;

src/unix/linux_like/linux/musl/b32/x86/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ pub const MAP_SYNC: ::c_int = 0x080000;
313313

314314
pub const SOCK_STREAM: ::c_int = 1;
315315
pub const SOCK_DGRAM: ::c_int = 2;
316-
pub const SOCK_SEQPACKET: ::c_int = 5;
317316

318317
pub const EDEADLK: ::c_int = 35;
319318
pub const ENAMETOOLONG: ::c_int = 36;

src/unix/linux_like/linux/musl/b64/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
134134
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
135135
pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32;
136136

137-
pub const SOCK_SEQPACKET: ::c_int = 5;
138-
139137
extern "C" {
140138
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
141139
}

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ pub const POSIX_MADV_DONTNEED: ::c_int = 4;
539539

540540
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
541541

542+
pub const SOCK_SEQPACKET: ::c_int = 5;
542543
pub const SOCK_DCCP: ::c_int = 6;
543544
pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
544545
pub const SOCK_PACKET: ::c_int = 10;

0 commit comments

Comments
 (0)