copying lines from one .h to another with different copyrights

From: Rick Macklem <rick.macklem_at_gmail.com>
Date: Fri, 01 Aug 2025 22:53:01 UTC
Hi,

I am working on a patch to fix the kgssapi so that it
works for MIT's Kerberos.

I have copied about 20lines from the MIT .h file in
/usr/include/gssapi/gssapi_krb5.h to /usr/src/sys/kgssapi/gssapi.h.
(The kernel one is a small subset that the kernel code needs.)

My question is...
Since the two .h files have different copyright notices, do I need
to copy the copyright notice into /usr/src/sys/kgssapi/gssapi.h?

Thanks for any info (amateur lawyers welcome to comment), rick