src/java.base/unix/native/libnio/ch/FileChannelImpl.c
changeset 55753 b9798272720b
parent 49897 117501815bed
child 57804 9b7b9f16dfd9
equal deleted inserted replaced
55752:8ae33203d600 55753:b9798272720b
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    30 #include <unistd.h>
    30 #include <unistd.h>
    31 
    31 
    32 #if defined(__linux__) || defined(__solaris__)
    32 #if defined(__linux__) || defined(__solaris__)
    33 #include <sys/sendfile.h>
    33 #include <sys/sendfile.h>
    34 #elif defined(_AIX)
    34 #elif defined(_AIX)
       
    35 #include <string.h>
    35 #include <sys/socket.h>
    36 #include <sys/socket.h>
    36 #elif defined(_ALLBSD_SOURCE)
    37 #elif defined(_ALLBSD_SOURCE)
    37 #include <sys/socket.h>
    38 #include <sys/socket.h>
    38 #include <sys/uio.h>
    39 #include <sys/uio.h>
    39 #define lseek64 lseek
    40 #define lseek64 lseek