//go:build !netbsd && !freebsd && !darwin && !windows

package http

import (
	"fmt"
	"syscall"
)

func statAtime(sys any) (int64, error) {
	x, ok := sys.(*syscall.Stat_t)
	if !ok {
		return 0, fmt.Errorf("sys is a %T, expected *syscall.Stat_t", sys)
	}
	return int64(x.Atim.Sec)*1000*1000*1000 + int64(x.Atim.Nsec), nil
}