Source file src/net/internal/cgotest/resstate.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build cgo && darwin
     6  
     7  package cgotest
     8  
     9  /*
    10  #include <resolv.h>
    11  */
    12  import "C"
    13  
    14  import (
    15  	"internal/syscall/unix"
    16  	"unsafe"
    17  )
    18  
    19  // This will cause a compile error when the size of
    20  // unix.ResState is too small.
    21  type _ [unsafe.Sizeof(unix.ResState{}) - unsafe.Sizeof(C.struct___res_state{})]byte
    22  

View as plain text